Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

How to make a countdown timer in flash CS3

Loading...

Sign in or sign up now!
25,456
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 20, 2008

this is a tutorial about how to simply make a countdown timer in flash CS3, hope u like it!

(put this on frame)
code:
timer = 10;

countdown = function(){ timer--; if(timer==0){ clearInterval(countdownInterval); gotoAndPlay(231);
}
}

countdownInterval = setInterval(countdown,1000);


the gotoAndPlay(231); thing is just when the countdowntimer reach 0 then it will go to the frame that i have entered.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 6 dislikes

Link to this comment:

Share to:

Uploader Comments (BrokenCak3)

  • god damit is their a way of reseting the timer back to zero please help

  • @YoukilledQWERTY

    Ofcourse my friend :)

    timer = 50;

    countdown = function(){ timer--; if(timer==0){ clearInterval(countdownInterva­l); timer = 50; }

    }

    countdownInterval = setInterval(countdown,1000);

    "now when the timer reach zero the timer will reset to 50"

  • Really helpful, finally finished my FPS

  • Glad i could help ^^

  • when i put the code in, it says ERROR, and im using CS3! whats wrong with the script?

  • This coding is made in as2. actionscript 2.0

Video Responses

This video is a response to Flash Timer Tutorial
see all

All Comments (52)

Sign In or Sign Up now to post a comment!
  • that was very annoying it would have been better if you had sound :S

  • Perfect For creating a timer for the release of windows 8 beta. :3

  • @DanielTaylorReis change the char family, some of them doesn't work with some sprite

  • Helped a lot! Thanks!

  • how do you make play again button after the timer plz reply fast

  • @DanielTaylorReis

    i had the same problem untill i changed the font. change the font, experiment with other fonts, because some fonts don't work. i am using arial because arial works, but bauhaus 93, ect doesent work. or at least i don't know how to make it work. but anyways i hope i helped a bit. :P

  • fuck i need this soo much, the timer works but the numbers don t apear on the screen i don know what to do :"(

  • WRGENT, i did like you did and the timer works but the numbers dont apear on the text box

  • thank you :) this helped a lot

  • hey i could really use some help is there anyway i can make it so that at the end of the timer it goes straight to another frame?

View all Comments »
Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more