# htmlText Linked Image

**URL:** <https://forum.kirupa.com/t/htmltext-linked-image/243499>\
**Category:** flash\
**Created:** [November 7, 2007, 5:40pm UTC](https://forum.kirupa.com/t/htmltext-linked-image/243499 "2007-11-07T17:40:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zosia](https://avatars.discourse-cdn.com/v4/letter/z/c0e974/32.png) [@Zosia](https://forum.kirupa.com/u/Zosia)\
**Post date:** [November 7, 2007, 5:40pm UTC](https://forum.kirupa.com/t/htmltext-linked-image/243499/1 "2007-11-07T17:40:30Z")

</div>

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:

```auto
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?
