;

PDA

Click to See Complete Forum and Search --> : Is this okay?


purplemadness
11-02-2005, 03:58 AM
for (i=100; i==0; i--){
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...

ppedz
11-02-2005, 11:26 AM
Your FOR loop is incorrect, it should be


for (i=100; i>=0; i--){
element ("bomb").scale.x=i
element ("bomb").scale.y=i
}


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

purplemadness
11-03-2005, 10:34 AM
Is there something like a delay in actionscript?

ppedz
11-03-2005, 11:12 AM
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.

blanius
11-03-2005, 03:09 PM
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.