Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

10 Second Countdown Timer

223 views
Skip to first unread message

Junelisar

unread,
Aug 19, 2008, 12:46:10 AM8/19/08
to
Does anyone know the Action Script 2 or 3 code for a 10 second
countdown timer?

Thank you!

Junelisar

unread,
Aug 19, 2008, 1:08:50 AM8/19/08
to

This 10 second timer would be with seconds and milliseconds.

Travis Newbury

unread,
Aug 19, 2008, 6:01:24 AM8/19/08
to
On Aug 19, 1:08 am, Junelisar <juneli...@gmail.com> wrote:
> > Does anyone know the Action Script 2 or 3 code for a 10 second
> > countdown timer?

Did you even try to google "Actionscript timer Flash"

--
Travis
Flash Crap: http://travisnewbury.blogspot.com

Junelisar

unread,
Aug 19, 2008, 8:32:22 AM8/19/08
to

Yes and one of the few helpful search results I found is below.
However, I'm trying to figure out how to add milliseconds.

var countdown_time:Number = 10;
var counter:Number = countdown_time;

countdown_txt.autoSize = "right";

function countdown() {
counter--;
countdown_txt.text = counter;
if (counter == 0) {
trace("countdown complete");
clearInterval(intID);
}
}

countdown_txt.text = countdown_time;
intID = setInterval(countdown,1000);


Thank you for any help you can offer!

0 new messages