Flash 8 Action Scripts

Associate
Joined
20 Jul 2004
Posts
88
Location
SUffolk UK
I am very new to using flash so apologies for asking a probably easy question, but I was wondering if anyone could tell me how I could get my animation to only play a set number of times by adding an action script or possibly put a delay between the animation running again.

Cheers

Matt
 
MattB said:
I am very new to using flash so apologies for asking a probably easy question, but I was wondering if anyone could tell me how I could get my animation to only play a set number of times by adding an action script or possibly put a delay between the animation running again.

Cheers

Matt

this might not be the best way to do it but its a way...


1. create a variable and set it to 0
2. if variable equals the number of times around then stop() else gotoAndPlay(0);
3. variable = variable + 1
4. thats it
 
unknowndomain said:
this might not be the best way to do it but its a way...


1. create a variable and set it to 0
2. if variable equals the number of times around then stop() else gotoAndPlay(0);
3. variable = variable + 1
4. thats it

That is the best way to do it :)
 
Back
Top Bottom