
225
EXTENDING FLASH PROFESSIONAL
flash object (fl)
Last updated 5/2/2011
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.closeAll(), fl.closeDocument()
fl.closeDocument()
Availability
Flash MX 2004.
Usage
fl.closeDocument(documentObject [, bPromptToSaveChanges])
Parameters
documentObject A Document object. 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.
Returns
Nothing.
Description
Method; closes the specified document.
Example
The following example illustrates two ways of closing a document.
Commenti su questo manuale