private var _timer:Timer=new Timer(2000); public function init():void { _timer.addEventListener(TimerEvent.TIMER,onTimer); _timer.start(); } public function onTimer(evt:TimerEvent):void { trace("ww"); }
转载于:https://www.cnblogs.com/zjhnl/archive/2012/04/10/2440155.html