Jump to content


count down timer help?


  • You cannot reply to this topic
1 reply to this topic

#1 °•Guru•°

    Young Padawan

  • Members
  • Pip
  • 73 posts
  • Gender:Male
  • Location:Australia, Sydney

Posted 07 November 2006 - 07:37 PM

hey all,

i'm trying to do a very very basic countdown timer where the dynamic text field is set at 60 and 1 is taken off every second.

i do know how to do this its just i have forgotten it :laugh: bummer!!

any ideas??

Cheers peeps ;)

#2 Ben

    P2L Jedi Master

  • Publishing Betazoids
  • PipPipPipPip
  • 1,366 posts
  • Gender:Male
  • Location:VIC, Australia

Posted 08 November 2006 - 12:44 AM

var time:Number = 60;
countInterval = setInterval(countDown, 1000);
function countDown() {
time--;
//textArea.text = time+" Seconds remaining";
if(time == -1) {
time = 0;
clearInterval(countDown);
}
}






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users