ActionScript Looping Stat

Actionscript loops are used to perform an action over and over again. For example if I want to type the word Actionscript 100 times, I will need to use trace("ActionScript") 100 times. It will really become difficult, if I want to do the same task 1000 times. The way around is to use actionscript loops.

The syntax for actionscript for loops is given here

for(initialization; condition; update){

  //perform this task

}

Let's have a look at a practicle example of actionscript for loop example

var i:uint;
for(i = 0; i <= 10; i++) {

trace("Actionscript");

}

//this actionscript example will output the word Actionscript 10 times