近距离空中的应用程序,它在哪里?它在、近距离、应用程序

2023-09-08 14:36:17 作者:不努力,有什么资格谈未来

好像System.exit(0)和flash.system.System.exit(0)双方抛出的错误[错误]异常,信息=引发SecurityError:错误#2018:System.exit仅在独立的Flash Player可用。

Seems System.exit(0) and flash.system.System.exit(0) both throw the error "[Fault] exception, information=SecurityError: Error #2018: System.exit is only available in the standalone Flash Player."

我创建一个全屏应用程序,即时通讯只是想添加一个关闭按钮,将关闭所有窗口和退出(我必须通过的NativeWindow打开第二个窗口)。吨,吨谷歌上搜索任何没什么的。使我怀疑,如果即时通讯失去了一些东西,因为超级简单的所有chromless的应用程序就必须有这个。

I'm creating a fullscreen app and im simply want to add a close button that will close all windows and exit (i have a secondary window via NativeWindow open). Tons and tons of googling any nothing. Makes me wonder if im missing something super simple since all "chromless" apps would have to have this.

闲逛,我发现stage.NativeWindow但关闭不退出整个应用程序。

Poking around I found stage.NativeWindow but closing that does not exit the whole app.

*注意我建立和测试flashdevlop 4.0纯AS3,没有弯曲。

*note I am building and testing in flashdevlop 4.0 with pure as3, no flex.

推荐答案

NativeApplication.nativeApplication.exit();

NativeApplication.nativeApplication.exit();

当有疑问,请查看文档! :)

When in doubt, check the docs! :)

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/NativeApplication.html#exit()