package{ import flash.display.Sprite; import flash.utils.*; import flash.events.*; public class Main extends Sprite{ public function Main(){ var timer:Timer = new Timer(5000, 1); timer.addEventListener(TimerEvent.TIMER, deferredMethod); timer.start( ); } function deferredMethod(event:TimerEvent):void { trace("on timer"); } }}
Name (required)
email (will not be published) (required)
Website