1
votes

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."

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.

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

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

1
pls search SO next time before you post your question: stackoverflow.com/questions/2837648/… thx - Philipp Kyeck
as I pointed out I had searched quite a bit, thanks for the RTFM thou. - Ryan Mills
@pkyeck, The question you referenced is unrelated to this question. Sure, it's regarding exiting an air app, but the issue that Ryan was having is not the same as the issue in the post you've referenced. Please read the full question as well as follow up posts/comments before harassing relatively new members on their site etiquette in error. - user562566
@ascension-systems sorry if i was too rude but i couldn't believe that he wasn't able to find anything (google and/or SO) about this topic. and a quick scan showed a couple of answers and the one i was refering to mentioned the important part: NativeApplication.nativeApplication.exit(); but again, sorry if i came across rude (i tried using pls and thx though ;) ). and "harassing" is definitely too harsh a word. - Philipp Kyeck
Ok my bad. I just looked at the answer you referenced and it is a different issue. - user562566

1 Answers