--- In [email protected], "fb6668" <[EMAIL PROTECTED]> wrote: > > Hi. > I have a custom component which uses data from my modellocator. > Depending on the way this component is called depends where abouts > this data comes from, > > ie: > > private var _itemLocation:Object; > [Bindable] > protected function get itemLocation():Object > { > if(isAssets) > _itemLocation = model.factfind.assets; > else > _itemLocation = model.factfind.liabilities; > > return _itemLocation; > } > > protected function set itemLocation(value:Object):void > { > _itemLocation = value; > }
You may want to try some combination of the following: 1) Do the setting in the setter tather than the getter 2) Type itemLocation as ArrayCollection rather than Object 3) Use BindingUtils to set up a binding as shown in this example http://www.returnundefined.com/2006/11/creating-truly-reusable- renderers-with-classfactory HTH; Amy

