ilteris kaplan blog

Archive of blog posts since 2005

April 5, 2008

Wiki

Code 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