RE: [flexcoders] Dump object to Console

2006-07-17 Thread Lisa Nelson
Beautiful in it's simplicity. Thanks. --L -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Monday, July 17, 2006 10:17 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Dump object to Console For a shallow copy, use

Re: [flexcoders] Dump object to Console

2006-07-17 Thread JesterXL
For a shallow copy, use a for in / for each loop. var s:String = ""; for ( var p:* in o) { s += p + ": " + o[p] + "\n"; } trace(s); For something more, like a tree, use mx.utils.ObjectUtils.toString. I have a DebugWindow I use here so you don't have to toggle to FlexBuilder to see your trac