RE: [flexcoders]How to change the selectedIndex of a LinkBar
Happy to help, and we always welcome contributors to the community. I am a "he", if it matters. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fake_id_911 Sent: Wednesday, July 16, 2008 11:21 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders]How to change the selectedIndex of a LinkBar I like Tracy (assuming Tracy is a she) she is so helpful. I learned a lot from Tracy. So to honor Tracy, I give my time to help too. --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > I don't use LinkBar because it is too limiting. > > If I need the links dataDriven, I use LinkButtons in a Repeater, > otherwise I just use LinkButtons declared individually. LinkButtons > call a nav function, which changes the styleName of the previously > selected LinkButton(ref stored in instance variable) to a "normal" > style, and the currently clicked LinkButton to a "selected" style. > > Tracy
Re: [flexcoders]How to change the selectedIndex of a LinkBar
I like Tracy (assuming Tracy is a she) she is so helpful. I learned a lot from Tracy. So to honor Tracy, I give my time to help too. --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > I don't use LinkBar because it is too limiting. > > If I need the links dataDriven, I use LinkButtons in a Repeater, > otherwise I just use LinkButtons declared individually. LinkButtons > call a nav function, which changes the styleName of the previously > selected LinkButton(ref stored in instance variable) to a "normal" > style, and the currently clicked LinkButton to a "selected" style. > > Tracy
RE: [flexcoders]How to change the selectedIndex of a LinkBar
I don't use LinkBar because it is too limiting. If I need the links dataDriven, I use LinkButtons in a Repeater, otherwise I just use LinkButtons declared individually. LinkButtons call a nav function, which changes the styleName of the previously selected LinkButton(ref stored in instance variable) to a "normal" style, and the currently clicked LinkButton to a "selected" style. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Friday, December 28, 2007 8:39 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders]How to change the selectedIndex of a LinkBar Apparently the visual selection in a LinkBar only works when its dataprovider is a collection of DisplayObjects (e.g. ViewStack). The ViewStack doesn't even have to be visually present (it has to be on the display list though), so the following will work ;-) And of course you can extend LinkBar or NavBar and make it work properly with non display objects. regards, Muzak - Original Message - From: "dorkie dork from dorktown" <[EMAIL PROTECTED]> To: Sent: Friday, December 28, 2007 7:13 PM Subject: [flexcoders]How to change the selectedIndex of a LinkBar > No matter what I try I cannot change the "selected" item in the linkbar. Try > this example. How do I change what item is visually "selected". > > > http://www.adobe.com/2006/mxml"; > layout="absolute"> > selectedIndex="0" color="#D41010" disabledColor="#1D7AC1" > disabledOverlayAlpha="1" dropShadowEnabled="true" dropShadowColor="#00" > errorColor="#AC0909"> > > > > > BTW does it seem confusing that the selected color and selected text don't > refer to the item that the user is on or has already clicked? > -- 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
Re: [flexcoders]How to change the selectedIndex of a LinkBar
Apparently the visual selection in a LinkBar only works when its dataprovider is a collection of DisplayObjects (e.g. ViewStack). The ViewStack doesn't even have to be visually present (it has to be on the display list though), so the following will work ;-) And of course you can extend LinkBar or NavBar and make it work properly with non display objects. regards, Muzak - Original Message - From: "dorkie dork from dorktown" <[EMAIL PROTECTED]> To: Sent: Friday, December 28, 2007 7:13 PM Subject: [flexcoders]How to change the selectedIndex of a LinkBar > No matter what I try I cannot change the "selected" item in the linkbar. Try > this example. How do I change what item is visually "selected". > > > http://www.adobe.com/2006/mxml"; > layout="absolute"> > selectedIndex="0" color="#D41010" disabledColor="#1D7AC1" > disabledOverlayAlpha="1" dropShadowEnabled="true" dropShadowColor="#00" > errorColor="#AC0909"> > > > > > BTW does it seem confusing that the selected color and selected text don't > refer to the item that the user is on or has already clicked? > -- 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/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/