You should need Bindable metadata on both labelText variables: [Bindable] public var labelText:String; I'm not sure why the value shows up properly in Child1.mxml. -Brian
> -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner > Sent: Tuesday, January 17, 2006 10:33 AM > To: [email protected] > Subject: [flexcoders] Binding in Flex 2 > > Hi All, > > I'm sure this is going to be one of those questions that you regret > asking as soon as it leaves your mouth, because it seems so simple. > I'm having an issue binding 2 levels deep. Something that does work > in Flex 1.5 doesn't work in Flex 2. Below are 3 files for an > example... > > The value of "labelText" shows up properly in Child1.mxml, but does > not bind into Child2.mxml properly. I have tried using > getters/setters with a Change event and Bindable property attached to > them with no luck. > > > //MainApp.mxml -- passing initial value of labelText to first child > <mx:Application > xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*"> > <Child1 labelText="My Text" /> > </mx:Application> > > > > //Child1.mxml -- labelText binds properly > <mx:HBox xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*"> > <mx:Label text="my text first = {String(labelText)}" /> > <Child2 labelText="{String(labelText)}" /> > <mx:Script> > <![CDATA[ > public var labelText:String; > ]]> > </mx:Script> > </mx:HBox> > > > //Child2.mxml -- labelText does not bind proplery > <mx:HBox xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*"> > <mx:Label text="my text second = {String(labelText)}" /> > <mx:Script> > <![CDATA[ > public var labelText:String; > ]]> > </mx:Script> > </mx:HBox> > > > Thanks in advance for the help, > > Brendan > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > > > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

