Fl.closeallplayerdocuments(), Fl.closedocument() – Adobe Extending Flash Professional CS4 User Manual
Page 247

225
EXTENDING FLASH CS4 PROFESSIONAL
flash object (fl)
fl.closeAll();
See also
,
fl.closeAllPlayerDocuments()
Availability
Flash CS3 Professional.
Usage
fl.closeAllPlayerDocuments()
Parameters
None.
Returns
A Boolean value:
true
if one or more movie windows were open;
false
otherwise.
Description
Method; closes all the SWF files that were opened with Control > Test Movie.
Example
The following example closes all the SWF files that were opened with Control > Test Movie.
fl.closeAllPlayerDocuments();
See also
,
fl.closeDocument()
Availability
Flash MX 2004.
Usage
fl.closeDocument(documentObject [, bPromptToSaveChanges])
Parameters
documentObject
. If documentObject refers to the active document, the Document window might
not close until the script that calls this method finishes executing.
bPromptToSaveChanges
A Boolean value. When bPromptToSaveChanges is
false
, the user is not prompted if the
document contains unsaved changes; that is, the file is closed and the changes are discarded. If bPromptToSaveChanges
is
true
, and if the document contains unsaved changes, the user is prompted with the standard yes-or-no dialog box.
The default value is
true
. This parameter is optional.