Create label as url link in flex builder

I need to make a shortcut in flex, as if you click on it, you can open a specific URL, say, Google.

Any ideas?

Sincerely.

+5
source share
1 answer

Here is an example:

<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)"/>

+6
source

All Articles