import flash.utils.Timer; import flash.events.TimerEvent; private var t:Timer; function init():void{ t = new Timer(10000); t.addEventListener(TimerEvent.TIMER, functName); t.start(); } function functName(e:TimerEvent):void { trace(" update "); t.start(); }
No comments:
Post a Comment