I have a List Component whose dataProvider is an ArrayCollection of 
generic objects.

I have another object I would like to bind a property of to a 
property to the selectedItem of the List.

I have:
BindingUtils.bindProperty
(currentOp,"type",this.columnList.selectedItem,"TYPE");

No go...  I see that the binding util cannot work with the property 
TYPE on the generic object, does not implement IEventDispatcher, 
etc.  I get why it doesn't work.

So if I add
<mx:Text id="selectedType" text="{this.columnList.selectedItem.TYPE}" 
visable="false"/>

and 
BindingUtils.bindProperty(currentOp,"type",this.selectedType,"text");

it works.

I would prefer NOT to have a bunch of invisible text fields running 
around.  How can I accomplish this in AS?

Thanks
Dom

Reply via email to