Flash Looping
Flash Looping
- Started
- Last post
- 5 Responses
- Focker
Can you specify in flash for something to loop 3 times then stop?
How can i do this?
Thanks
- kpl0
put this script in the last frame:
counter++;
if (counter >= 3)
stop();
- unformatted0
you could setup a counter.
and on frame 1(or when your animations starts) add 1 to the counter variable. then setup a function checking if the counter is equal to 3, and stop if it does.
- unformatted0
k, i'm slow.
don't you need squiggly brackets?
if (counter >= 3) {
stop();
}
- autonoma0
for (i=0; i<3; i++) {
performThisFunction();
}
- kpl0
no squiggly brackets needed if the block is only one line long.