When inserting HTML into a text field, the link can either link to a web site, or trigger an event within the Flash movie. This example triggers an event instead of going to a web site.
Download the FLA filevar abc:TextField = new TextField(); abc.width = 150; abc.height = 50; abc.x = 30; abc.y = 30; abc.htmlText = "<a href='event:this is the event text'>Click here</a>"; abc.addEventListener(TextEvent.LINK, clickFunc); var xyz:TextField = new TextField(); xyz.width = 150; xyz.height = 50; xyz.x = 220; xyz.y = 30; function clickFunc(myEvent:TextEvent) { abc.htmlText = "Click was successful"; xyz.text = myEvent.text; } addChild(abc); addChild(xyz);