I found the answer in adding an EventListener listenign for the
TextEvent.LINK event. The code is below.



<?xml version="1.0" encoding="utf-8"?>
<TextInputPanel xmlns="soapbox.util.*" xmlns:mx="http://www.adobe.com/
2006/mxml"
    width="300" height="200"
    title="I want to learn"
    borderThicknessLeft="6" borderThicknessRight="6"
borderColor="#395182" creationComplete="init()">
    <mx:Script>
        <![CDATA[
            private function init():void {
                this.titleTextField.htmlText = "I want to <font
color='#0000FF'><a href='event:learn'>learn</a></font> | <font
color='#0000FF'><a href='event:teach'>Teach</a></font>";
                this.titleTextField.addEventListener(TextEvent.LINK,
learnHandler);
            }
            private function learnHandler(event:TextEvent):void {
                trace("link clicked");
            }
        ]]>
    </mx:Script>

</TextInputPanel>

On Apr 21, 8:12 am, mainManian <[email protected]> wrote:
> Hi Kiran, thanks for yoru reply. However, my issue is that I am unable
> to set panel.titleTextField.link to have a link handler. Neither can I
> have link property in the titleBar of a panel.
>
> On Apr 21, 8:02 am, Kiran Kumar Vasireddy <[email protected]> wrote:
>
>
>
> > LakshmiNarayana helped me recently for this .
> > here is the linkhttp://shashankkulkarni.wordpress.com/tag/hyperlink/
>
> > On Wed, Apr 21, 2010 at 4:05 AM, mainManian <[email protected]> wrote:
> > > I am creating a custom panel in which, I want the title to have HTML
> > > text in which a word is clickable. I have below attached a mxml
> > > component code with the HTML text for the title. I don't know how to
> > > provide for a link handler for the link event.
>
> > > I appreciate any help. Please let me know if you need more info.
> > > Thanks, Ramesh
>
> > > ------------
>
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <TextInputPanel xmlns="soapbox.util.*" xmlns:mx="http://www.adobe.com/
> > > 2006/mxml <http://www.adobe.com/%0A2006/mxml>"
> > >        width="300" height="200"
> > >        title="Registered classes"
> > >        borderThicknessLeft="6" borderThicknessRight="6"
> > > borderColor="#395182" creationComplete="init()">
> > >        <mx:Script>
> > >                <![CDATA[
> > >                        private function init():void {
> > >                                this.titleTextField.htmlText = "I want to
> > > <font color='#0000FF'><a
> > > href='event:learn'>learn</a></font> | <font color='#0000FF'><a
> > > href='event:teach'>Teach</a></font>";
> > >                        }
> > >                ]]>
> > >        </mx:Script>
>
> > > </TextInputPanel>
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Flex India Community" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<flex_india%[email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/flex_india?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/flex_india?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/flex_india?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to