Bruno, See... I knew it was going to be that easy. I had tried this, but was obviously doing it incorrectly. Works now. Thanks!
Brendan --- In [email protected], Bruno Martins <[EMAIL PROTECTED]> wrote: > > Hi, > > In flex 2 you are obrigate to use a metatag [Bindable] like: > > <![CDATA[ > [Bindable] > public var labelText:String; > ]]> > > in flex 1.5 you also can you [Bindable] but this don't make diferences. > > Another point to say is about static vars. Until now, in tha alpha version, > you canot use you bindable, but the engeniers of macromedia are working to > change this in the following vensions. > > Bye... > > On 1/17/06, Brendan Meutzner <[EMAIL PROTECTED]> wrote: > > > > 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 > > > > > > > > SPONSORED LINKS > > Web site design development<http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ> Computer > > software development<http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw> Software > > design and development<http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ> Macromedia > > flex<http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZI36cYzBjw> Software > > development best practice<http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw> > > ------------------------------ > > YAHOO! GROUPS LINKS > > > > > > - Visit your group "flexcoders<http://groups.yahoo.com/group/flexcoders>" > > on the web. > > > > - To unsubscribe from this group, send an email to: > > [EMAIL PROTECTED]<[EMAIL PROTECTED]> > > > > - Your use of Yahoo! Groups is subject to the Yahoo! Terms of > > Service <http://docs.yahoo.com/info/terms/>. > > > > > > ------------------------------ > > > > > > -- > Bruno Gustavo Martins > Mobile: (55)(11)9585-9587 > [EMAIL PROTECTED] > -- 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/

