var fruits:Array = new Array("apples", "oranges", "grapes", "pears");
for each (var fruit:String in fruits ) {
trace(fruit); //Outputs apples, oranges, grapes, pears
}
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
Posted by
admin
on Tuesday, July 21, 2009
Labels:
Arrays
0 comments:
Post a Comment