Hi there,

I have a countdown timer that works well counting down a minute, before it does something.

I'd like to add counting of tenths of a second to this too, but don't know where to start.

Please help if you can.

Actionscript Code:
var turnTimerSeconds:int = 60;
var turnTimerDuration:int = 1000; // 1 second
var turnTimerRepeat:int = 60;

var turnTimer = new Timer(turnTimerDuration,turnTimerRepeat);

turnTimer.addEventListener(TimerEvent.TIMER, turnTime);

function turnTime(e:Event) {
    var totalSecondsLeft:Number = (MovieClip(this.root).turnTimerSeconds) - turnTimer.currentCount;
    main.countdown_timer.counting.text = timeFormat(totalSecondsLeft);
}

function timeFormat(seconds:int):String {
    var minutes:int;
    var sMinutes:String;
    var sSeconds:String;

    if (seconds > 59) {
        minutes = Math.floor(seconds / 60);
        sMinutes = String(minutes);
        sSeconds = String(seconds % 60);
    } else {
        sMinutes = "";
        sSeconds = String(seconds);
    }
   
    if (sSeconds.length == 1) {
        sSeconds = "0" + sSeconds;
    }

    return sSeconds;
}

turnTimer.addEventListener(TimerEvent.TIMER_COMPLETE, turnDone);

function turnDone(e:TimerEvent):void {
    turnTimer.reset();
    turnTimer.stop();
    game_stage = OUT_OF_TIME;
}

THANKS!