What's Here?
- Members: 137,189
- Replies: 481,319
- Topics: 75,045
- Snippets: 2,567
- Tutorials: 675
- Total Online: 2,328
- Members: 105
- Guests: 2,223
|
good for Games! or whatever :D
Written by senocular (senocular.com).
Original can be found at http://www.kirupa.com/developer/actionscript/setinterval2.htm
|
Submitted By: reyco1
|
|
Rating:
|
|
Views: 49,845 |
Language: ActionScript
|
|
Last Modified: December 31, 2006 |
|
Instructions: make a dynamic text feild and give it a variable name of: displayTime. Place the code on the first frame of the movie. |
Snippet
// Author: senocular.com
// http://www.kirupa.com/developer/actionscript/setinterval2.htm
displayTime = 10;
countDown = function () {
displayTime--;
if (displayTime == 0) {
clearInterval(timer);
}
};
timer = setInterval(countDown, 1000);
Copy & Paste
|
|
|
Programming
Web Development
Reference Sheets
Bye Bye Ads
Monthly Drawing
Top Contributors
Top 10 Kudos This Month
|