Welcome to my actionscript snippet library!

Actionscript Snips is a small repository of actionscript code that aims to save developers and designers time when developing a website.  

Traversing Array Using For Each Loop


var fruits:Array = new Array("apples", "oranges", "grapes", "pears");

for each (var fruit:String in fruits ) {
trace(fruit); //Outputs apples, oranges, grapes, pears
}

0 comments:

Post a Comment