6 Replies Latest reply on Mar 15, 2007 11:23 AM by The_BIG_screen.cjb.net

    Tab navigator

    The_BIG_screen.cjb.net Level 1
      I have created an online store using flex. I am using a tab navigator and within the canvas of the tab navigator i need to load a mxml component. i may be getting this wrong, i have only had flex for about a month and am still learning.

      i am using the following code:

      <mx:TabNavigator id="tn" width="100%" height="100%">
      <!-- Define each panel using a VBox container. -->

      <mx:VBox label="Panel 1">
      <mx:Label text="TabNavigator container panel 1"/>
      </mx:VBox>

      <mx:VBox label="Panel 2">
      <mx:Label text="TabNavigator container panel 2"/>
      </mx:VBox>

      <mx:VBox label="Panel 3">
      <mx:Label text="TabNavigator container panel 3"/>
      </mx:VBox>
      </mx:TabNavigator>

      <mx:Label width="100%" color="blue"
      text="Programmatically select the panel using a Button control."/>

      <mx:HBox>
      <mx:Button label="Select Tab 1" click="tn.selectedIndex=0"/>
      <mx:Button label="Select Tab 2" click="tn.selectedIndex=1"/>
      <mx:Button label="Select Tab 3" click="tn.selectedIndex=2"/>
      </mx:HBox>

      Thanks for any help