public class Main extends Sprite { public function Main( ) { var field:TextField = new TextField( ); field.htmlText = "<a href='event:http://www.navioo.com'>Website</a>"; field.addEventListener(TextEvent.LINK, onClick);
addChild(field); } private function onClick(event:TextEvent):void { trace("click"); } } }
Related Scripts with Example Source Code in same category :