There are three kinds of loops in ActionScript, the for loop, the while loop, and the do loop. There are also two other kinds that are loops used specifically for traversing a collection such as an Array, and can’t be used in any other way. These are the for…in loop and the for…each loop.
Learn ActionScript basics for free
For Loop
The most frequently used looping statement ain any language is For loop.
for (var i:int = 0; i < 10; i++) {
trace("Hello.");
}
The for loop contains three expressions
1. Initialization
2. Condition
3. Increment/decrement
Read More..
0 comments:
Post a Comment