esc 退出程序

air

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)
    {
        NativeApplication.nativeApplication.exit();
    }
}

  

上一篇:Flink 实践教程-入门(7):消费 Kafka 数据写入 PG


下一篇:flink datastream