3 Replies Latest reply on Oct 9, 2009 8:47 AM by WestSide

    <mx:LinkBar and keep highlighted?

    WestSide Level 1

      Hi,

       

      I have an <mx:LinkBar> that has the following snippet "<mx:LinkBar itemClick="switchView(event)" /> 

       

      // the link bar controls my viewstack, when you click one of the links it calls the below function

       

      private function switchView(evt:ItemClickEvent):void {
             viewStack.selectedIndex = evt.index;
      }

       

      When I roll my mouse over the <mx:LinkBar> I see the hover color, I'd like the link to remain selected once the user has clicked it.  I am using this linkbar to control a viewstack and I'd much rather the linkbar remain selected/highlighted after the user has clicked it.

       

      Any ideas how to do this?

       

      -ws