页面重载: navigateToURL(new URLRequest("javascript:location.reload();"),"_self")
关闭浏览器:navigateToURL(new URLRequest("javascript:window.close()"),"_self");
屏蔽右键
import flash.ui.ContextMenu; //隐藏右键!按钮 private function hideright():void { var maodage:ContextMenu=new ContextMenu ; maodage.hideBuiltInItems(); //maodage.builtInItems.print = true; this.contextMenu=maodage;}
//cross跨域文件
<?xml version="1.0" ?> <cross-domain-policy> <allow-access-from domain="*.example.com"/> <allow-access-from domain="www.friendOfExample.com"/> <allow-access-from domain="192.168.0.1"/> </cross-domain-policy>