• <?xml version="1.0" encoding="utf-8"?>   
  • <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initApp()"   
  • layout="absolute" width="278" height="244">   
  • <mx:Script>   
  •    <![CDATA[   
  •      
  •      internal function initApp():void{   
  •       var str:String = "<a target='_blank' href='http://hi.baidu.com/hxd0818/'>paraliseinhell</a>";   
  •        link.htmlText = str;   
  •      }   
  •        
  •      internal function openUrl():void{   
  •        navigateToURL(new URLRequest("http://hi.baidu.com/hxd0818/"), "_blank");   
  •      }   
  •    ]]>   
  • </mx:Script>   
  •    <mx:Button x="72" y="117" label="paraliseinhell" fontSize="13" id="link2" click="openUrl()"/>   
  •    <mx:Text id="link" text="paraliseinhell" x="72" y="47" fontSize="13"/>   
  • </mx:Application>  
  • 相关文章:

    • 2021-12-15
    • 2021-07-06
    • 2021-12-02
    • 2021-09-06
    • 2022-12-23
    • 2021-12-28
    • 2022-12-23
    • 2022-12-23
    猜你喜欢
    • 2022-12-23
    • 2022-12-23
    • 2021-05-15
    • 2021-05-26
    • 2022-02-28
    • 2022-12-23
    • 2022-12-23
    相关资源
    相似解决方案