flash.system.System
--------------------
exit () method
public static function exit(code:uint):void
Closes Flash Player.
For the standalone Flash Player debugger version only.
AIR applications should call the NativeApplication.exit() method to exit the application.
Player Version: Flash Player 9 Update 3 or the AIR Debug Launcher (ADL).
Parameters code:uint — A value to pass to the operating system. Typically, if the process exits normally, the value is 0.