Monday, October 13, 2008

Stop an animation after specified loops

Here is another code for Stop the total animation after the loops

Put this code to your 1st frame
{ var runover:Number = 0;}

Put this code to ur Last frame
runover ++;if(runover==3)

Pause Flash Anim

Hello Guys , I was face some problem to pause animation for 2 or 3 sec, here i got the solution for that. thanks to

//stop at your desired frame .stop();//Build the interval
// 1 second = 1000 milliseconds 1 x 1000 // setinterval(the-function , time[in milliseconds]) var nInterval = setInterval(Play, 2000);
/*function which will excute and clear the interval & Will play the next Frame after 5 sec.*/function Play() { clearInterval(nInterval); gotoAndPlay(_currentframe+1);}