View Full Version : [AS3] System.exit equivalent
experimenter
07-14-2009, 04:52 AM
Hi,
How do you do the equivalent of System.exit in AS3?
DukeW
07-14-2009, 09:08 AM
Hey, you can use fscommand("quit"), but don't forget this will work only for Projectors, it wont close any Projector windows.
experimenter
07-14-2009, 08:52 PM
Is there no generic "System.exit"?
lordofduct
07-14-2009, 09:02 PM
Only available as an AIR app:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/desktop/NativeApplication.html
NativeApplication.exit(...);
you can't exit out an app that is embedded as a movie in some web page. You navigate away from it to exit out.
Jeremy Rudd
01-20-2011, 09:41 PM
Kinda late, but anyways
import flash.system.System;
System.exit(); // exits the SWF running in flash player/projector
System.gc(); // runs garbage collection now to consume less memory
|
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.