I have a similar issue. 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, it 
doesn't change 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/>

--- In [email protected], "Abdul Qabiz" <[EMAIL PROTECTED]> wrote:
>
> Nithya,
>  
> You can still use this approach, you can write a generic-function in
> your main application file. Invoke that function from link...
>  
> So no matter textfield is located, you can invoke that function 
using
> "mx.core.Application.application.functionName"...
>  
> Sounds good?
>  
> -abdul
> 
> ________________________________
> 
> From: [email protected] 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Nithya R
> Sent: Friday, December 16, 2005 8:13 PM
> To: [email protected]
> Subject: RE: [flexcoders] html link in text
> 
> 
> thanks abdul... i have one more issue with this... say i have the
> openLink() function in another mxml file and the text is not in the 
main
> application..its in a panel (a custom component)...then how should i
> call it by using a href? see the link should not open a new browser 
it
> shuold instead call a function which would show a popup window(a 
title
> window- which a local component) please help me in this issue...
>  
> thanks in advance
> nithya
> 
> 
> Abdul Qabiz <[EMAIL PROTECTED]> wrote:
> 
>       Please see the code below:
>        
>       <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";
> creationComplete="initApp()">
>        <mx:Script>
>         <![CDATA[
>          import mx.controls.Alert;
>          function openLink()
>          {
>           Alert.show("Link Clicked");
>          }
>          function initApp()
>          {
>        
>           txt.htmlText = "Click <a
> href='asfunction:mx.core.Application.application.openLink'><font
> color='#0000FF'><u>here</u></font></a> for more details.";
>          }
>         ]]>
>        </mx:Script>
>        <mx:TextArea id="txt" />
>        
>       </mx:Application>
>        
>        
>        
>       You can also use javascript: in <a /> tag or you can put a url
> there...
>        
>       -abdul
>       
>       
> ________________________________
> 
>       From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of Nithya R
>       Sent: Wednesday, December 14, 2005 4:08 PM
>       To: flexcoders
>       Subject: [flexcoders] html link in text
>       
>       
>       hi,
>        
>         i want to have a text with a html link in between.. like
>        
>       "click HERE for more details" .. in this sentence HERE alone
> should be a link... how to do this
>        
>       thanks,
>       nithya
>       Send instant messages to your online friends
> http://uk.messenger.yahoo.com 
> 
> 
> Send instant messages to your online friends
> http://uk.messenger.yahoo.com 
> 
> --
> Flexcoders Mailing List
> FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> 
> 
> 
> 
> SPONSORED LINKS 
> Web site design development
> <http://groups.yahoo.com/gads?
t=ms&k=Web+site+design+development&w1=Web+
> 
site+design+development&w2=Computer+software+development&w3=Software+d
es
> 
ign+and+development&w4=Macromedia+flex&w5=Software+development+best+pr
ac
> tice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>   Computer software
> development
> <http://groups.yahoo.com/gads?
t=ms&k=Computer+software+development&w1=We
> 
b+site+design+development&w2=Computer+software+development&w3=Software
+d
> 
esign+and+development&w4=Macromedia+flex&w5=Software+development+best+
pr
> actice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>         Software 
design and
> development
> <http://groups.yahoo.com/gads?
t=ms&k=Software+design+and+development&w1=
> 
Web+site+design+development&w2=Computer+software+development&w3=Softwa
re
> 
+design+and+development&w4=Macromedia+flex&w5=Software+development+bes
t+
> practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>       
> Macromedia flex
> <http://groups.yahoo.com/gads?
t=ms&k=Macromedia+flex&w1=Web+site+design+
> 
development&w2=Computer+software+development&w3=Software+design+and+de
ve
> 
lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s
=1
> 66&.sig=OO6nPIrz7_EpZI36cYzBjw>       Software development best
> practice
> <http://groups.yahoo.com/gads?
t=ms&k=Software+development+best+practice&
> 
w1=Web+site+design+development&w2=Computer+software+development&w3=Sof
tw
> 
are+design+and+development&w4=Macromedia+flex&w5=Software+development+
be
> st+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>    
> 
> ________________________________
> 
> YAHOO! GROUPS LINKS 
> 
> 
>       
> *      Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>         
> *      To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> 
>         
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> . 
> 
> 
> ________________________________
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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