Brilliant! Thank you.

--- In flexcoders@yahoogroups.com, Roman Protsiuk <roman.prots...@...> wrote:
>
> And what if Object would not be generic Object but rather class
> DataProviderContainer { [Bindable]public var dataProvider:ArrayCollection;}
> I assume your dynamic property dataProvider on Object is not bindable.
> 
> Roman Protsiuk
> Software Engineer/Engineering Team Lead
> 
> http://under.in.ua
> 
> Kyiv, Ukraine (GMT+2)
> mobile: +38 097 321 56 54 email:
> roman.prots...@...<%3C/span%3eroman.prots...@...>
>  skype: roman.protsiuk
> linkedin: http://www.linkedin.com/in/romanpv blogspot:
> http://roma-ch.blogspot.com
> 
> 
> On Fri, Aug 14, 2009 at 12:53 AM, gmbroth <gmbr...@...> wrote:
> 
> >
> >
> > 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
> >
> >  
> >
>


Reply via email to