嗨,这里有一些我必须阅读和理解的代码,所以任何人都可以解释一下对象代理的作用以及有什么好处,因为只是格式化它?
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;
}