Código ActionScript :
var fl_SecondsToCountDown:Number = 30; var fl_CountDownTimerInstance:Timer = new Timer(1000, fl_SecondsToCountDown); fl_CountDownTimerInstance.addEventListener(TimerEvent.TIMER, fl_CountDownTimerHandler); fl_CountDownTimerInstance.start(); function fl_CountDownTimerHandler(event:TimerEvent):void { trace(fl_SecondsToCountDown + " segundos"); fl_SecondsToCountDown--; } texto.appendText(fl_SecondsToCountDown + " segundos".toString()); if (fl_SecondsToCountDown == 1 ) { gotoAndStop(3) }