Hello Guys , I was face some problem to pause animation for 2 or 3 sec, here i got the solution for that. thanks to www.flashkit.com
//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);}
Monday, October 13, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment