|
There is no specific style on LinkBar that
you can use. Instead, since the LinkBar is just a parent for a bunch of
LinkButton’s, you can use getChildAt on your LinkBar to control the
styles on the individual LinkButtons. Here is some code you can use to change
the color of text of your selected item: private function changeColor() : void { var n:int =
mylb.numChildren; var lb1:*; ta.text = 'hello'; for(var i:int=0; i <
n; i++) {
lb1 = mylb.getChildAt(i);
lb1.setStyle('color', 0x000000); } lb1 =
mylb.getChildAt(mylb.selectedIndex); lb1.setStyle('color',
0xFF0000); } <mx:LinkBar id="mylb"
itemClick="changeColor()"> <mx:dataProvider>
<mx:String>Yes</mx:String>
<mx:String>No</mx:String> <mx:String>Maybe</mx:String> </mx:dataProvider> </mx:LinkBar> From: a linkbar
is a recommended way to control a viewstack. But I want to -- 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
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- [flexcoders] using a linkbar with a viewstack... how can ... hank williams
- [flexcoders] Re: using a linkbar with a viewstack...... Michael Labriola
- Re: [flexcoders] Re: using a linkbar with a view... hank williams
- RE: [flexcoders] using a linkbar with a viewstack...... Joan Lafferty
- Re: [flexcoders] using a linkbar with a viewstac... hank williams
- RE: [flexcoders] using a linkbar with a viewstack...... Dustin Mercer

