Search tutorials
2nd Frame
DON'T MOVE THE BUTTON! But change the code of the button to this:on (press, release) {
score = score+0.5;
}
Place two dynamic textboxes on the stage. Give one of them the variable "score" (no quotes) and the other one "time" (no quotes).
Place this code on the second frame:
stop();
setInterval(countdown,1000);
time = 30;
function countdown() {
time = time-1;
if (time<=0) {
gotoAndStop("done");
}
}
Press F6 to create a new frame. | » Level Intermediate |
|
Added: 2007-12-28 Rating: 6.04 Votes: 23 |
| » Author |
| I like using Flash and making stuff! |
| » Download |
| Download the files used in this tutorial. |
| Download (0 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!