FLEX 关闭ID

作者在 2006-10-15 19:50:00 发布以下内容

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns="*" creationComplete="init()">

<mx:Script>
<![CDATA[

import flash.net.URLRequest;

private function closeApp():void
   {
       var urlString:String = "javascript:self.close()";
       var request:URLRequest = new URLRequest(urlString);
       navigateToURL(request, "_self");
   }

]]>
</mx:Script>

 <mx:LinkButton id="CloseApp" label="Close Application" click="closeApp();"/>


</mx:Application>

Flex | 阅读 930 次
文章评论,共0条
游客请输入验证码
浏览96304次