AS3 Loops: For Loop breakdown

for( init ; condition ; next ) {
method

}
//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:

for (var i:Number=0; i < vExample; i++) {
tMessages.appendText([i]+" , " );
}

Leave a Reply