Hi all!
I’m trying to figure out why the image link doesn’t work
But the Text Link seems to work.
i mean the image link does work only if i click on the image border.
i can see the hand cursor , click the image and go to the link only if i move my mouse about 5px around image.
So its 5px around all image where i can click the link((
but there is nothing when i move my mouse on the image and click it:
var _HTML="<a href='http://url'><img width='650' height='350' id='img1' src='image.jpg'></a> SOME TEXT and <a href='http://url'>Text Link</a>";
_tf = new TextField();
addChild(_tf);
_tf.x=0;
_tf.y=400;
_tf.defaultTextFormat = _fmt;
_tf.autoSize = TextFieldAutoSize.LEFT;
_tf.width = 670;
_tf.multiline =true;
_tf.wordWrap = true;
_tf.htmlText=_HTML;
_tf.addEventListener(TextEvent.LINK,clickin);
function clickin(t:TextEvent):void
{
var request:URLRequest=new URLRequest(t.text);
navigateToURL(request);
}
Could you help me out?