Hi,
I’m trying to add a simple link to a TextField so that it’s clickable and will trigger the hand cursor when hovered over. I’ve tried to use a TextFormat.url function in combination with TextEvent.LINK, but that doesn’t do anything for me. In fact, I can’t get TextFormat.url to even be applied to the Text!
If I have this code:
hyperlinkTF.url = "http://www.google.com";
__hyperlink = new TextField();
__hyperlink.addEventListener(TextEvent.LINK, handleLinkClick, false, 0, true);
__hyperlink.defaultTextFormat = hyperlinkTF;
__hyperlink.htmlText = "Google";
trace(__hyperlink.htmlText);
…I end up with a non-clickable link that does not trigger the hand cursor. The trace is:
<P ALIGN="LEFT"><FONT FACE="Times New Roman" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">Google</FONT></P>
I can’t find ANYTHING documenting this issue.
And yes, I CAN use a CLICK listener, but I don’t get the hand cursor that way. Supposedly the LINK event is supposed to trigger the hand cursor in some circumstances.
Can someone help me?