1 Reply Latest reply on Feb 22, 2007 9:08 AM by NeoKoD

    Set a style on an inactive  tab of TabNavigator

    NeoKoD
      Hi,

      For a chat application, I have a TabNavigator with one person by tab.
      When a person speak, I want to change the color of this specified tab.

      Currently, I can change the properties "backgroundColor" on the tab, but this don't works until we set the focus on this tab.

      quote:


      // tabs is my TabNavigator
      var childIndex:int = tabs.getChildIndex( tabs.getChildByName("theSpecificUserTab"));
      var tabButton:Button = tabs.getTabAt( childIndex );
      tabButton.setStyle("backgroundColor", "#FF6600");




      I suppose my way only changing the styles of the button when this button is active.
      But the goal is to change the style even if the tab isn't active...
      Is it possible ?

      Thanks a lots