AS3 Pausetimer

Add the following code to the first frame of your movie in a layer named actions.
[code]
stop();
var pauseTimeline:Number=300;
var Tim:Timer = new Timer(pauseTimeline, 1);
Tim.addEventListener(TimerEvent.TIMER, playit);

function playit(e:TimerEvent):void {
play();
}   

Tim.start();
[/code]
When you want to add another pause in your movie, add this code in the frame you want to pause.

[code]
stop();
pauseTimeline=3000;
Tim.start();
[/code]

Popularity: 4% [?]

line
Graphicmuse Design copyright 2009