mx.utils.ObjectUtil will do that for you. Here's an example:
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute" creationComplete="init()" > <mx:Script> <![CDATA[ import mx.utils.ObjectUtil; import flash.util.trace; private function init():void { var myArray:Array= [{name:"Name1", age:20},{name:"Name2", age:30}]; trace(ObjectUtil.toString(myArray)); } ]]> </mx:Script> </mx:Application> regards, Muzak ----- Original Message ----- From: "Zane Hejduk" <[EMAIL PROTECTED]> To: <flexcoders@yahoogroups.com> Sent: Wednesday, April 12, 2006 5:06 AM Subject: [flexcoders] Flex 2 Object Inspector > Hi, > > Is there an easy way to inspect objects in Flex 2? I tried setting an object > as the dataProvider for a Tree component but the > root just says [object Object]. Is there a component I can use to see what's > inside of an object? > > Thank you. > > -Z > > > --------------------------------- > How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/