开发者

making a label as a url link in flex builder

开发者 https://www.devze.com 2023-04-06 11:34 出处:网络
I need to make a label in flex as if you click on it you can open a specific 开发者_如何学GoURL let us say Google.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消