I have two link bars with different datasources. I want to un-hilite the
hilited link in linkbar 1 when I click a link in linkbar 2. If I add
selectedIndex = -1 in the itemClick event of linkbar 2:

<mx:LinkBar id="lb2" itemClick="sideLinkBar(event);lb2.selectedIndex = -1;"
dataProvider="{sideMenu}"/>

I get a (RangeError: Error #2006: The supplied index is out of bounds).
However, if I change the selected index to another index (e.g. index 1) it
changes the index and hilites index 1 as expected. I looked at the
LinkBar.as Class and can see that the default property for selecedIndex is
-1.

How can I un-hilite the current selected index?

Thanks,
JRBower

-- 
View this message in context: 
http://www.nabble.com/Un-hilite-link-in-LinkBar-1-from-LinkBar-2-tp16395615p16395615.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to