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;//全屏显示

  

posted on 2021-03-28 16:57  我是cdt  阅读(134)  评论(0编辑  收藏  举报