UnselectedLinkBar.as 565 B

123456789101112131415161718192021222324252627
  1. package com.imt.intimamedia.helpers
  2. {
  3. import mx.controls.Button;
  4. import mx.controls.LinkBar;
  5. public class UnselectedLinkBar extends LinkBar
  6. {
  7. public function UnselectedLinkBar ()
  8. {
  9. super();
  10. }
  11. override protected function hiliteSelectedNavItem( index : int ) : void
  12. {
  13. var object : Object = super;
  14. var child : Button;
  15. if( selectedIndex != -1 && selectedIndex < numChildren )
  16. {
  17. child = Button( getChildAt( selectedIndex ) );
  18. child.enabled = true;
  19. }
  20. object.selectedIndex = index;
  21. }
  22. }
  23. }