MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 228

Extending flash
Table of Contents

Advertisement

Parameters
, [
]
documentObject
bPromptToSaveChanges
A
Document
object. If
refers to the active document,
documentObject
documentObject
the Document window might not close until the script that calls this method finishes
executing.
A Boolean value. If it is
, the user is not prompted if the
bPromptToSaveChanges
false
document contains unsaved changes; that is, the file is closed and the changes are discarded. If
the value is
, and if the document contains unsaved changes, the user is prompted with
true
the standard yes-or-no dialog box. The default value is
. This parameter is optional.
true
Returns
A Boolean value:
if successful;
otherwise.
true
false
Description
Method; closes the specified document. See also
.
fl.closeAll()
Example
The following example illustrates two ways of closing a document.
// Closes the specified document and prompts to save changes.
fl.closeDocument(fl.documents[0]);
fl.closeDocument(fl.documents[0] , true); // Use of true is optional.
// Closes the specified document without prompting to save changes.
fl.closeDocument(fl.documents[0], false);
fl.closeProject()
Availability
Flash 8.
Usage
fl.closeProject()
Parameters
None.
Returns
A Boolean value of
if the project was successfully closed;
if there is no project
true
false
file open.
228
Objects

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents