This is one of my favorite pieces of code, and it get used often.
Frame one of your movie
stop();
var millis:Number=3000;
var Tim:Timer = new Timer(millis, 1);
Tim.addEventListener(TimerEvent.TIMER, playit);
function playit(e:TimerEvent):void {
play();
}
Tim.start();
Whenever you need to pause you movie add the following code to your actions layer at the exact frame where you want your movie to pause.
stop();
millis=3000;
Tim.start();
And if that wasn’t easy enough, I provided a working fla. Have fun.
Popularity: 30% [?]
Leave a Reply