1 Reply Latest reply on Jan 20, 2011 7:31 AM by Gaurav J

    Any alternative rather than making UIComponent visible to true and false

    kiran7881 Level 1


      Hi ,

       

      I am using Flex 3 .
      I have 4 Tabs .

       

      Clicking on each Tab , we need to show different Components depending upon the Screen Requiremnt .

       

      Now i have a ToggleButton Bar which i defined in MXML as:

       

      <mx:ToggleButtonBar id="tbbar" dataprovider={someArray} visible=false/>

       

      On clicking on ONe of the 4 Tab Buttons i am showing this ToggleButton by making tbbar = visible .

       

      This works fine , but the problem is that on selection of other Tabs , i am making it as tbbar.visible=false ;

       

      Is there any other solution , rather than this ??
      Because it doesn't look good each time , making it visible to false and true .

       

      Please sugget me a alternate Approach as how  to handle this .

       


      As i said my requirement is to enable a ToggleButtonBar on click of a Tab .

       

      Please suggest . Thanks .