Using ObjectUtil to dump an object's 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>
Related examples in the same category