使用Timer:public function a2():void{ var t:Timer = new Timer(1000,2); t.addEventListener(TimerEvent.TIMER,onTimerx); t.start(); //t.stop(); } public function onTimerx(event:TimerEvent):void{ trace("timer xxx"); }