Definition:
nA TabNavigator container creates and manages a set of tabs, which you use to navigate among its children.
nThe children of a TabNavigator container are other containers.
nCreates one tab for each child .
n It is a child class of the ViewStack container and inherits much of its functionality.
The <mx:TabNavigator> tag to define a TabNavigator container.
Only one child of the TabNavigator container is visible at a time.
Users can make any child the selected child by selecting its associated tab or by using keyboard navigation controls.
Source Code:
<?xml version=”1.0″?>
<!– containers\navigators\TNSimple.mxml –>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml”>
<!– containers\navigators\TNSimple.mxml –>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml”>
<mx:TabNavigator borderStyle=”solid” >
<mx:VBox label=”Accounts”
width=”300″
height=”150″>
<!– Accounts view goes here. –>
</mx:VBox>
<mx:VBox label=”Stocks”
width=”300″
height=”150″>
<!– Stocks view goes here. –>
</mx:VBox>
<mx:VBox label=”Futures”
width=”300″
height=”150″>
<!– Futures view goes here. –>
</mx:VBox>
</mx:TabNavigator>
</mx:Application>
Thanks with Regards,
Pandimalar A
Advertisement