Hi,
I'm having a bit of trouble using the following combination of data binding and
Repeater and could use some enlightenment:
<mx:ArrayCollection id="fred" > some data here... </mx:ArrayCollection >
<mx:ArrayCollection id="measurements" >
<mx:Object dataProvider={fred} />
</mx:ArrayCollection>
<mx:Repeater id="measurementRepeater" dataProvider="measurements" >
<my:Chart dataProvider="{measurementRepeater.currentItem.dataProvider"} />
</mx:Repeater>
The intention is to have my chart bind to 'fred' via the Repeater iteration
over "measurements", a kind of double-binding, I suppose. My chart component
does render the initial data in 'fred' but doesn't respond to subsequent
changes to 'fred', i.e., I'm not getting dynamic binding. But if I change the
repeater line above to this:
<my:Chart dataProvider="{fred}" />
then everything works as expected. Is there a way to do in MXML what I'm trying
to do above?
Thanks, Garry