Use TabBar and ViewStack, you can then programatically determine what
any tab click does.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of djohnson29
Sent: Thursday, August 14, 2008 4:43 PM
To: [email protected]
Subject: [flexcoders] TabNavigator - how to make label a hyperlink that
loads a specific module

 


I have a regular TabNavigator like so:

<mx:TabNavigator id="mainTabNav" > 
<mx:VBox id="tab1" label="First Tab">
<mx:ModuleLoader id="ml1" url="modules/FirstPage.swf"/>
</mx:VBox>

// more tabs go here

</mx:TabNavigator>

Within each tab, at various times in the program, I change the url of
the moduleLoader to load a new module within this container. When I
navigate to another tab, and then go back to this tab, the last loaded
module is displaying.

I would like to have the functionality so that the Label of the Tab is
a hyperlink - that would always load the "top-level" module. In other
words, the tab label will always load a specific module.

How can I make this a hyperlink or a LinkButton when the label
property is actually part of the VBox? Not sure how to do this....

Thanks




 

Reply via email to