从一个App退出,关闭app

监听舞台 stage.addEventListener(Event.DEACTIVATE,deactiveHandler);

protected function deactiveHandler(event:Event):void
{
// TODO Auto-generated method stub
NativeApplication.nativeApplication.exit();
}

posted on 2013-02-19 16:58  橙小风  阅读(220)  评论(0编辑  收藏  举报