air
import flash.desktop.NativeApplication;
stage.addEventListener(FullScreenEvent.FULL_SCREEN,screenHandle);
function screenHandle(e:FullScreenEvent):void
{
if(!e.fullScreen)
{
NativeApplication.nativeApplication.exit();
}
}
as3
stage.addEventListener(FullScreenEvent.FULL_SCREEN,screenHandle);
function screenHandle(e:FullScreenEvent):void
{
if(!e.fullScreen)
{
fscommand("quit");
}
}stage.displayState = StageDisplayState.FULL_SCREEN;//全屏显示
浙公网安备 33010602011771号