TabNavigator Container

Definition:

nA TabNavigator container creates and manages a set of tabs, which you use to navigate among its children.
n
nThe children of a TabNavigator container are other containers.
nCreates one tab for each child .
n
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”>

<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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.