Code:var count:int = 2013; var myTimer:Timer = new Timer(100,count); myTimer.addEventListener(TimerEvent.TIMER, countdown); myTimer.start(); function countdown(e:TimerEvent):void { myText_txt.text = String((count)-myTimer.currentCount); if (myText_txt.text == "1900") { myTimer.stop(); } }




Reply With Quote