var count:Number = 30;
var myTimer:Timer = new Timer(1000,count);
myTimer.addEventListener(TimerEvent.TIMER, countdown);
myTimer.start();
function countdown(event:TimerEvent):void {
myText_txt.text = String((count)-myTimer.currentCount);
}
add milliseconds to countdown
Page 1 of 11 Replies - 1581 Views - Last Post: 26 May 2012 - 07:52 AM
#1
add milliseconds to countdown
Posted 10 May 2012 - 08:56 PM
Hello I have a countdown object which countdowns from 30 seconds. I am very new to this so please bare with me. I have created a timer which counts down and displays it in a textfield. The problem is it countdown the seconds only, I want to also display the milliseconds, I have no clue how to do this?
Replies To: add milliseconds to countdown
#2
Re: add milliseconds to countdown
Posted 26 May 2012 - 07:52 AM
Decrease your timer interval from 1000 to say 1 or 5 and use the currentCount property to calculate and show the second and milliseconds passed.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|