I have a Tab navigator with HTML links as
shown below. I want the user to be able to click on the text link,
and navigate through each tab in the tab navigator depending on what
link is clicked.

I am calling a funtion in the main application from my component, 
however it doesn't change the tabs.

Any suggetions would be greatly appreciated.

**************************component definitions*****************
<mx:Canvas>

<mx:TextArea>
<mx:htmlText>
<![CDATA[
<font face="Verdana"><a
href="mx.core.Application.application.tabNavigation"> <font color
="#00529C">Click here</font></a>to navigate through tab bar.<br>
</font>
]]>
</mx:htmlText>
</mx:TextArea>

<mx:Canvas/>


*************************Main app******************
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";>
<mx:Script>
<![CDATA[

public function tabNavigation():Void{
     navigator.selectedChild=definitions;
}
]]>
</mx:Script>

<mx:TabNavigator id="navigator">

<comp:definitions id="definitions"/>

</mx:TabNavigator>
<mx:Application/>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to