开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜