AS3打開新窗口不被屏蔽的代碼
更新時間:2010年08月21日 21:45:53 作者:
有時候flash打開的網址會出現(xiàn)被屏蔽的現(xiàn)象,如何能輕松的打開而不被屏蔽呢,下面是具體的代碼。
復制代碼 代碼如下:
if (Capabilities.playerType == 'ActiveX') {ExternalInterface.call("window.open","http://www.adamstudo.cn/blog");}
else {navigateToURL(new URLRequest("http://www.adamstudo.cn/blog"),"_blank");
}
相關文章
Actionscript 3.0中Singleton實現(xiàn) 修正篇
說明:上一篇"一個簡單的Actionscript的單態(tài)模式類"的實現(xiàn)在Actionscript中報錯,具體原因會在這篇Blog中詳細說明。2009-02-02