At it's simplest

[as]

this.onEnterFrame = function() {
        var tme = getTimer();
        var secs = Math.ceil(tme/1000);
        var mins = Math.floor((tme/1000)/60);
        num_txt.text =mins+":"+secs
}; 
[/as]
> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of lars
> Sent: 27 February 2006 14:37
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] AS2.0 time/date Objects: Timer class?
> 
> indeed. next question: easiest way to format it to m:s display? :)
> 
> 
> Am 27.02.2006 15:26 Uhr schrieb "Mike Mountain" unter
> <[EMAIL PROTECTED]>:
> 
> > Use getTimer() instead.
> > 
> > M
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to