1 Reply Latest reply on Jan 21, 2011 10:15 AM by Flex harUI

    TabBar click , making a Component Visible to true and false

    kiran7881 Level 1



      I have a Tabbar with 4 tabs on it Say One , Two , Three and Four .


      <mx:TabBar  id="viewTab" itemClick="switchView();">

      public function switchView():void

      if(tabselected == Two)
      ToggleButtonBar.visible = true;

      if(tabselected == Three)
      ToggleButtonBar.visible = False;



      As you can see
      On clicking of Tab Two , i am showing a ToggleButtonBar Visible to false and on click of Tab Three i am making it visible to False .


      Now the problem is that again on click of Tab Two , this ToggleButtonbar is not visible again ??