Links tags as URL in Flex Builder

I need to make a label in flex, just like you click on it, you can open a specific URL to let us say Google.

Yes Any ideas?

Greetings.

This is a sample:


import flash.net.navigateToURL;
protected function clickHandler(event:MouseEvent):void
{
var urlReq:URLRequest = new URLRequest("http://www.google.com");
navigateToURL(urlReq, "_self");
}
]]>

< /p>

I need to make a label in flex, just like you click on it, you can open a specific URL to let us say Google.

Any ideas?

Greetings.

This is a sample:


import flash.net.navigateToURL;
protected function clickHandler(event:MouseEvent):void
{
var urlReq:URLRequest = new URLRequest("http: //www.google.com");
navigateToURL(urlReq, "_self");
}
]]>

< s:Label x="110" y="149" text="Open Google" click="clickHandler(event)"/>

Leave a Comment

Your email address will not be published.