Fl.closeall(), Fl.closeallplayerdocuments() – Adobe Extending Flash Professional CS5 User Manual
Page 246
224
EXTENDING FLASH PROFESSIONAL
flash object (fl)
Last updated 5/2/2011
Returns
Nothing.
Description
Method; copies the specified string to the Clipboard.
To copy the current selection to the Clipboard, use
.
Example
The following example copies the path of the current document to the Clipboard:
var documentPath = fl.getDocumentDOM().path;
fl.clipCopyString(documentPath);
fl.closeAll()
Availability
Flash MX 2004.
Usage
fl.closeAll([bPromptToSave])
Parameters
bPromptToSave
An optional Boolean value that specifies whether to display the Save dialog box for any files that have
been changed since they were previously saved, or the Save As dialog box for files that have never been saved. The
default value is
true
.
Returns
Nothing.
Description
Method; closes all open files (FLA files, SWF files, JSFL files, and so on). If you want to close all open files without
saving changes to any of them, pass
false
for bPromptToSave. This method does not terminate the application.
Example
The following code closes all open files, prompting the user to save any new or changed files.
fl.closeAll();
See also
,
fl.closeAllPlayerDocuments()
Availability
Flash CS3 Professional.