<?xml version="1.0" encoding="utf-8"?> <!-- http://blog.flexexamples.com/2008/01/26/listening-for-the-link-event-in-a-flex-label-control/ --> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"> <mx:Script> <!--[CDATA[ import mx.controls.Alert; private function lbl_initialize():void { lbl.htmlText = "For more information on Flex, see <u><a href="event:flex.org" mce_href="event:flex.org">http://www.flex.org/</a></u>."; } private function lbl_link(evt:TextEvent):void { Alert.show(evt.toString(), evt.text); switch (evt.text) { case "flex.org": // You clicked the flex.org link. break; } } ]]--> </mx:Script> <mx:Label id="lbl" selectable="true" initialize="lbl_initialize();" link="lbl_link(event);" /> </mx:Application>