Tag Archive | delay

Delay action in Action Script 3 (Flash)

To delay a flash action for some times, you can use this code:

var myDelay:Timer = new Timer(30000,1);
myDelay.addEventListener(TimerEvent.TIMER, showMessage);
myDelay.start();
function showMessage(event:TimerEvent):void{
gotoAndPlay("enterMain");
}
stop();