Revision: 6456
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 22, 2008 08:17 by Meestercor
Initial Code
public function print_a( obj, indent ) { if (indent == null){ indent = ""; } var out = ""; var start:Boolean = true; for ( item in obj ) { if (typeof( obj[item] ) == "object" ){ if(!start){ out += "n"+indent+ "[" + item + "] => Object"; } else{ out += indent+ "[" + item + "] => Object"; } start = false; } else { out += indent+"[" + item + "] => " + obj[item]+""; } out += print_a( obj[item], indent+" " ) + " "; } return out; }
Initial URL
Initial Description
Initial Title
Print_r in actionscript
Initial Tags
textmate, actionscript, array
Initial Language
Other