How do I exit the desktop flash player using Actionscript 3?
System.exit(0);
Results in
SecurityError: Error #2018: System.exit is only available in the standalone Flash Player.
The error appears both while previewing the project in Flash CS6 and while playing the exported swf-file in Flash Player Debugger.