ricky
ricky

Reputation: 23

how to use object proxy in flex?

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

Answers (1)

Devendra
Devendra

Reputation: 1884

ObjectProxy provides the ability to track changes to an item managed by this proxy. Any number of objects can "listen" for changes on this object, by using the addEventListener() method.use this to more clear.

Upvotes: 3

Related Questions