RE: [Flashcoders] AS2.0 time/date Objects: Timer class?

2006-02-27 Thread Mike Mountain
Use getTimer() instead. M -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of lars Sent: 27 February 2006 14:24 To: Flashcoders mailing list Subject: [Flashcoders] AS2.0 time/date Objects: Timer class? anyone has a timer class handy? something

Re: [Flashcoders] AS2.0 time/date Objects: Timer class?

2006-02-27 Thread Jim Armstrong
lars wrote: anyone has a timer class handy? something to display minutes and seconds counting, starting at 0:00... sorry, but i tried to calc a date/time difference using the date and time objects, but i can't make it :( tsk tsk http://www.2112fx.com/blog/pivot/entry.php?id=13 timestamp

Re: [Flashcoders] AS2.0 time/date Objects: Timer class?

2006-02-27 Thread lars
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 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of lars Sent: 27 February 2006

Re: [Flashcoders] AS2.0 time/date Objects: Timer class?

2006-02-27 Thread lars
yes, also nice, but how to avaid using your textfield? when i use timer.start( myownfield, timer.count_up) it's still displaying the one created by the class? Am 27.02.2006 15:35 Uhr schrieb Jim Armstrong unter [EMAIL PROTECTED]: lars wrote: anyone has a timer class handy? something to

RE: [Flashcoders] AS2.0 time/date Objects: Timer class?

2006-02-27 Thread Mike Mountain
] 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

RE: [Flashcoders] AS2.0 time/date Objects: Timer class?

2006-02-27 Thread Mike Mountain
Ooops addendum. [as] this.onEnterFrame = function() { var tme = getTimer(); var mins = Math.floor((tme/1000)/60); var secs = Math.ceil(tme/1000)-(mins*60) num_txt.text =mins+:+secs }; [/as] Will reset seconds when the minutes increments

Re: [Flashcoders] AS2.0 time/date Objects: Timer class?

2006-02-27 Thread lars
eh, any chance to reset the timer? i guess not, so i have to work with 2 vars and calculate the diff? in my example the timer needs to start when the users starts the game... Am 27.02.2006 15:59 Uhr schrieb Mike Mountain unter [EMAIL PROTECTED]: Ooops addendum. [as] this.onEnterFrame =

Re: [Flashcoders] AS2.0 time/date Objects: Timer class?

2006-02-27 Thread eric dolecki
www.layer51.com/proto you could probably take a prototype and make a class out of it fairly quickly... and then you'd always have one at the ready. perhaps there is a class already you might wanna use. On 2/27/06, lars [EMAIL PROTECTED] wrote: eh, any chance to reset the timer? i guess not, so

Re: [Flashcoders] AS2.0 time/date Objects: Timer class?

2006-02-27 Thread lars
i already checked proto51, but didnt find a as2 class handy. anyway: i'll do one :) Am 27.02.2006 16:32 Uhr schrieb eric dolecki unter [EMAIL PROTECTED]: www.layer51.com/proto you could probably take a prototype and make a class out of it fairly quickly... and then you'd always have one at

Re: [Flashcoders] AS2.0 time/date Objects: Timer class?

2006-02-27 Thread Ryan Matsikas
Looking for something like this? http://out.chewtinfoil.com/Timer.as On 2/27/06, lars [EMAIL PROTECTED] wrote: i already checked proto51, but didnt find a as2 class handy. anyway: i'll do one :) Am 27.02.2006 16:32 Uhr schrieb eric dolecki unter [EMAIL PROTECTED]: www.layer51.com/proto