A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Is this okay?

  1. #1
    Junior Member
    Join Date
    Apr 2005
    Location
    The Netherlands
    Posts
    15

    Is this okay?

    PHP Code:
    for (i=100i==0i--){
    element ("bomb").scale.x=i
    element 
    ("bomb").scale.y=i

    If it's not okay, would you send me the script of the motion form scale.x and scale.y

    I mean that zoom out motion..

    If it's okay why does'nt it work?
    I've put it in a mouse action

    It may look stupid (that script) but i think that's because i know to much about PHP...
    N00b flasheR
    -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

  2. #2
    Senior Member
    Join Date
    May 2005
    Posts
    163
    Your FOR loop is incorrect, it should be

    PHP Code:
    for (i=100i>=0i--){
    element ("bomb").scale.x=
    element 
    ("bomb").scale.y=

    since i==0 would ONLY be true when i=0

  3. #3
    Junior Member
    Join Date
    Apr 2005
    Location
    The Netherlands
    Posts
    15
    Is there something like a delay in actionscript?
    N00b flasheR
    -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

  4. #4
    Senior Member
    Join Date
    May 2005
    Posts
    163
    In 3DFA there is a DELAY scene event which allows you to do a delay based on seconds or frames.

    There is no actionscript delay function that I am aware of but you could make 1 or maybe Blanius already has 1 in his bag of tricks.

  5. #5
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    you cannot delay with in a script, What you need to do is break the scripting into functions and then you can use timing to call the function when it is time.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center