Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Countdown from 10
Author: Domen
In the first frame make a Dynamic text box, and set the var "time_left". Add this Action script to the frame:
stop();
setInterval(countdown, 1000);
time_left = 10;
function countdown() {
time_left = time_left-1;
if (time_left<=0) {
gotoAndStop(2);
}
}
Make a new frame and write something in it... Now it counts down from 10 to 0. If it doesn't work, look at the fla.
| » Level Basic |
|
|
Added: : 2006-08-12
Rating: 8.05 Votes: 22
Hits: 2820
|
| » Author |
|
I like flash
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (5 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|