private function onLinkBtnClick(event:Event):void{
if(linkBtnClickLoad!=null && linkBtnClickLoad!=""){
//CommonUtil.openWebPage(linkBtnClickLoad,null);
//var urlRequest:URLRequest = new URLRequest(Setting.serverUrl+linkBtnClickLoad);
//navigateToURL(urlRequest,"_blank");
// ExternalInterface.call("linkButtonOpen",Setting.serverUrl+linkBtnClickLoad);
ExternalInterface.call("linkButtonOpen","http://localhost:7002/greatSpringCXFWebservice/"+linkBtnClickLoad);
return;
主页面Html添加:
<script type="text/javascript">
function linkButtonOpen(values){
window.open(values,'_blank','top=0,left=0,toolbar=no,menubar=no,resizable=yes,location=no,scrollbars=yes,status=no');
}
</script> } ExternalInterface.addCallback("selectMenu",selectMenu);