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; }