# TextField with TextEvent.Link problem

**URL:** https://forum.kirupa.com/t/textfield-with-textevent-link-problem/303663
**Category:** flash
**Created:** [January 24, 2010, 7:18pm UTC](https://forum.kirupa.com/t/textfield-with-textevent-link-problem/303663 "2010-01-24T19:18:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Hungarian](https://avatars.discourse-cdn.com/v4/letter/h/71c47a/32.png) [@Hungarian](https://forum.kirupa.com/u/Hungarian)
#### Post date: [January 24, 2010, 7:18pm UTC](https://forum.kirupa.com/t/textfield-with-textevent-link-problem/303663/1 "2010-01-24T19:18:53Z")

</div>

Hey all,  
I have this code and the link works ok, except that when I have clicked  
it once and want to click the link again, it does not work.

Only way to get it to work is to click two times, or click somewhere else  
in the scene between the clicks so that the link looses focus before I click the second time.

Can anyone help me with how to make the link work every time.

```auto
    //Create the Release notes textfield
    var tfReleaseNotes:TextField = new TextField();
    //tfReleaseNotes.width = 440;
    tfReleaseNotes.autoSize = TextFieldAutoSize.RIGHT;
    tfReleaseNotes.embedFonts = true;
    tfReleaseNotes.defaultTextFormat = tFormLink12;
    tfReleaseNotes.selectable = false;
    tfReleaseNotes.multiline = false;
    tfReleaseNotes.wordWrap = false;
    tfReleaseNotes.htmlText = createLink("download/fxc-releasenotes.txt",releaseNotesDisplayText);
    //tfReleaseNotes.htmlText = createLink("download/" + currentAppFolder + "/fxc-changelog.txt",changeLogDisplayText);
    tfReleaseNotes.x = 380;
    tfReleaseNotes.y = 65;
    tfReleaseNotes.addEventListener(TextEvent.LINK, linkHandlerMain);
    DownloadsMC.addChild(tfReleaseNotes);

```

And the code that launches the link:

```auto
function linkHandlerMain(e:TextEvent):void 
{
    var request:URLRequest = new URLRequest(e.text);
    navigateToURL(request);
}

```

Thanks in advance  
Peter
