Probably a bug. File a bug and a patch. Alex Harui Flex SDK Developer Adobe Systems Inc.<http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui
From: [email protected] [mailto:[email protected]] On Behalf Of Fotis Chatzinikos Sent: Monday, August 17, 2009 2:21 PM To: [email protected] Subject: Re: [flexcoders] BUG: mx.controls.LinkBar - can somebody confirm? bump On Thu, Jul 30, 2009 at 12:49 PM, fotis.chatzinikos <[email protected]<mailto:[email protected]>> wrote: override protected function hiliteSelectedNavItem(index:int):void { var child:Button; // Un-hilite the current selection. if (selectedIndex != -1 && selectedIndex < numChildren) { child = Button(getChildAt(selectedIndex)); child.enabled = true; } // Set new index. super.selectedIndex = index; // Hilite the new selection. child = Button(getChildAt(selectedIndex)); child.enabled = false; } Should not the last two lines be inside a conditional != -1? There is not button @ -1 : if (selectedIndex != -1) { child = Button(getChildAt(selectedIndex)); child.enabled = false; } -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [email protected]<mailto:[email protected]>,

