Hi people,
i hope u can help me on this one...
i have a ModelLocator that holds an object with ArrayCollection.
i also have a TileList that gets the ArrayCollection of that object
through DataBinding. Now, when i change the Object in the ModelLocator
none of the custom itemRenderer in the TileList do not change. they
still show the old data.
any idea?
some code:
-------StoreVO.as--------
[Bindable]
public class StoreVO implements IValueObject{
[ArrayElementType("Product")]
public var products:ArrayCollection = new ArrayCollection();
}
------ModelLocator.as-----------
[Bindable]
public class ModelLocator implements ModelLocator{
public var store:StoreVO;
}
------Main.mxml---------
....
<mx:TileList
dataProvider="{ModelLocator.getInstance().store.products}"
itemRenderer="ProductView"
/>
-----ProductView.mxml--------
...
<mx:Label text="{data.name}" /> //i get warning - Data binding will
not be able to detect assignments to "data"