On 6/23/05, Philippe Maegerman <[EMAIL PROTECTED]> wrote: > It seems to work when the ViewStack is the dataProvider, but not when using > the LinkBar alone, bug or wish ? :)
The LinkBar disables the "selected link" only when it is connected to a ViewStack. For the non-ViewStack case, there's no "selected link" (you can keep clicking on the same one -- the idea is to invoke a function like Add or Remove or Visit google.com or something). If however you want to make it behave like there's only one selected link at a time, see this example (yeah, so you have to write some code): <?xml version="1.0"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*"> <mx:LinkBar disabledColor="#FF0000" dataProvider="{['1', '2', '3']}" click="enableDisableLink(event.target, event.index)" creationComplete="enableDisableLink(event.target, 0)" /> <mx:Script> import mx.containers.LinkBar; private var lastSelectedIndex:Number; public function enableDisableLink(linkBar:LinkBar, index:Number):Void { linkBar.getChildAt(lastSelectedIndex).enabled = true; linkBar.getChildAt(index).enabled = false; lastSelectedIndex = index; } </mx:Script> </mx:Application> -- 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/

