Flash CS3 Documentation |
|||
| Extending Flash > Objects > flash object (fl) > fl.quit() | |||
Flash MX 2004.
fl.quit([bPromptIfNeeded])
bPromptIfNeeded A Boolean value that is true (default) if you want the user to be prompted to save any modified documents. Set this parameter to false if you do not want the user to be prompted to save modified documents. In the latter case, any modifications in open documents will be discarded and the application will exit immediately. Although it is useful for batch processing, use this method with caution. This parameter is optional.
Nothing.
Method; quits Flash, prompting the user to save any changed documents.
The following example illustrates quitting with and without asking to save modified documents:
// Quit with prompt to save any modified documents. fl.quit(); fl.quit(true); // True is optional. // Quit without saving any files. fl.quit(false);
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00004165.html