![]() |
|
| • All Online Courses • New Courses • QuickTips • Word Definitions • Submit a Tutorial • Links • |
|
Macromedia Flash MX 2004 ActionScript Programming Tutorial LoopsA loop repeats a series of actions as long as a specified condition exists. It consists of three elements: the condition, the actions to be repeated, and a counter that increments (or decrements) each time the actions are repeated. In ActionScript, there are four types of loops:
It’s important to be aware that the stage isn’t updated each time a loop is executed, so these kinds of loops aren’t practical for displaying the repeating actions on the stage. To display repetitive actions on the stage, use the onEnterFrame() event handler or the setInterval() function. The onEnterFrame() event handler is described under Automating Processes with Keyframe Loops and the setInterval() function is described later in the tutorial, when you use it to call a function that updates the contents of the stage at 1-second intervals. As with if statements, you can find loop statements in the Actions toolbox, in the Conditions/Loops subfolder of the Statements folder:
by Summer Doucet Find more free Software tutorials from Learnthat.com. More Information:
Help us by rating this tutorial: [---] [--] [+] [++] [+++] [---] lowest; [+++] highest
|
|
||||||
![]() |
Learn: Free
Tutorials - Links
to Free Tutorials
Understand: Free Technical Definitions
- ExplainThat Whitepapers
Use: Certification Section -
Discussion Forum
Visit Our Network Sites:
About Us : Contact Us : Advertise : Privacy Information