April 5, 2008
WikiCode As3 Forin
#wiki
var arr:Array = ["test", "test2", "test3"];
// Use a regular for in loop to access the properties in arr
for ( var i in arr ) {
trace( i );
}
// Use the new for each in loop to access the values in arr
for each ( var s:String in arr ) {
trace( s );
}
Continue Reading
Back to Archive