
October 24th, 2011, 01:48 AM
|
|
Registered User
|
|
Join Date: Oct 2011
Posts: 1
Time spent in forums: 24 m 48 sec
Reputation Power: 0
|
|
|
ActionScript 2 - Help with Flash Looping
Hi everyone, please help me on this little question that im facing now.
I have a 240 frames file and need it to loop 3 times but on the third time, i need it to stop at frame 220.
Here is the script i am using (i know it is not right if i need it to stop at 220);
if(!loopCount) {
var loopCount:Number = 0;
}
loopCount++;
if (loopCount>=3) {
_root.gotoAndStop(241);
} else{
gotoAndPlay(1);
}
trace(loopCount);
Can anyone please help me with this?
THANK YOU!!!!!!
|