Reputation: 23
hi here is some code that i have to read & understood so can anybody explain me what object proxy does and whats benefit because just formatting it?
override public function set currentResult(value:ArrayCollection):void
{
super.currentResult = value;
dispatch(new doEvent(getFormatData(value)));
}
private static function getFormat(ddList:ArrayCollection):ArrayCollection
{
var formattedArr:ArrayCollection = new ArrayCollection();
for each(var obj:Object in ddList)
formattedArr.addItem(new ObjectProxy(obj));
return formattedArr;
}
Upvotes: 0
Views: 1237