Mega Code Archive

 
Categories / Flex / Development
 

Using ObjectUtil to dump an objects properties

<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"     creationComplete="trace(ObjectUtil.toString(myAC))">     <mx:Script>                  import mx.collections.ArrayCollection;         import mx.utils.ObjectUtil;         public var myAC:ArrayCollection = new ArrayCollection([             {label:"J", data:"j"},             {label:"T", data:"t"},             {label:"F", data:"f"}         ]);            </mx:Script> </mx:Application>