actionscript 3 - close air app, where is it? -


seems system.exit(0) , flash.system.system.exit(0) both throw error "[fault] exception, information=securityerror: error #2018: system.exit available in standalone flash player."

i'm creating fullscreen app , im want add close button close windows , exit (i have secondary window via nativewindow open). tons , tons of googling nothing. makes me wonder if im missing super simple since "chromless" apps have have this.

poking around found stage.nativewindow closing not exit whole app.

*note building , testing in flashdevlop 4.0 pure as3, no flex.

nativeapplication.nativeapplication.exit();

when in doubt, check docs! :)

http://help.adobe.com/en_us/flashplatform/reference/actionscript/3/flash/desktop/nativeapplication.html#exit()


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -