RSS
email

ActionScript Basics part6



Loops are used to execute same statement of code for definite number of times.

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..

Bookmark and Share

0 comments:

 

Recent Posts

Recent Visitors

Donate Me

About Me

My photo
Chennai, Tamil nadu, India
Nothing more to say about me.. Just a Action Script programmer / Flex developer having 4.5 years of experience.