17Jul

For Each Loop Construct

No comments

Just another way to read items in an array:

// Init the array
var myArr:Array = ["one", "two", "three"];

// Read the values of the array
for each ( var items:String in myArr ) {
 	trace( items );
}

Share/Save/Bookmark

Categories: Actionscript 3, Arrays

Thursday, July 17th, 2008 at 10:16 am and is filed under Actionscript 3, Arrays. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a reply