Mega Code Archive

 
Categories / Flex / Container
 

Moving through the application with the Navigation containers

<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:Script>                            import mx.events.ItemClickEvent;               private function clickHandler(event:ItemClickEvent):void {                              mx.controls.Alert.show(String(event.index) + "/" + event.label);               }            </mx:Script>     <mx:Panel title="Navigation Containers"  height="90%" width="90%" >         <mx:TabNavigator id="myTN" width="100%" height="100%">         <mx:VBox label="Services">                  </mx:VBox>                  <mx:VBox label="About">             <mx:Label text="Child container 2"/>         </mx:VBox>                  <mx:VBox label="Contact">             <mx:Label text="Child container 3"/>         </mx:VBox>                  </mx:TabNavigator>          </mx:Panel> </mx:Application>