Flex中调用js完成退出和全屏等功能
1、退出
在Flex中调用js的代码为
ExternalInterface.call("loginout");
function loginout(){this.window.location.reload();}
this.stage.displayState = StageDisplayState.FULL_SCREEN;//全屏this.stage.displayState = StageDisplayState.NORMAL;//还原
"allowFullScreen","true",//2处,在"allowScriptAccess","sameDomain",后面另一个是添加
allowFullScreen="true"//1处,在allowScriptAccess="sameDomain"后面