AS2-MC repeat 'x' times
AS2-MC repeat 'x' times
- Started
- Last post
- 6 Responses
- hiatus
how do I get a movieclip in flash to repeat 2-3 times and stop();
- PonyBoy0
set a variable at the beginning that increases with each iteration...
... check that variable each iteration to see if it's gone through three times.
- nuggler0
you mean, play its timeline 3x?
on the 1st frame: var count = 0
on the last frame:
count++;
if(count>2){
stop();
}
else{gotoAndPlay(2)};
- hiatus0
hope it works let you know.