making a label as a url link in flex builder
I need to make a label in flex as if you click on it you can open a specific 开发者_如何学GoURL let us say Google.
Any ideas?
regards.
Here is sample:
<fx:Script>
<![CDATA[
import flash.net.navigateToURL;
protected function clickHandler(event:MouseEvent):void
{
var urlReq:URLRequest = new URLRequest("http://www.google.com");
navigateToURL(urlReq, "_self");
}
]]>
</fx:Script>
<s:Label x="110" y="149" text="Open Google" click="clickHandler(event)"/>
精彩评论