AS3 Loops: While Loop breakdown

init;
while( condition ) {
method

next;

}
//init counts how many times the loop is executed
//condition how far to count up too
//next is what we count by
//what you want to loop goes in here

Actionscript:

var i:Number=0;
while(i<10){
trace (testArray[i]);
i=i+1
}

Leave a Reply