Macromedia fireworks mx 2004-extending fireworks User Manual

Page of 296
Fireworks functions
245
fw.closeDocument()
Availability
Fireworks 3.
Usage
fw.closeDocument(document, {bPromptToSaveChanges})
Arguments
document
  A Document object that specifies the document to close (see 
).
bPromptToSaveChanges 
An optional Boolean argument. If 
bPromptToSaveChanges
 is 
true
 or 
omitted and the document has changed since the last time it was saved, the user is prompted to 
save changes to the document. If 
bPromptToSaveChanges
 is 
false
, the user is not prompted, 
and any changes to the document are discarded.
Returns
Nothing.
Description
Closes the specified document. 
fw.createDocument()
Availability
Fireworks 3.
Usage
fw.createDocument().
Arguments
None.
Returns
The Document object for the newly created document (see 
Description
Opens a new document and selects it. Values for size, resolution, and color are the same as 
the current defaults. To specify values other than the defaults, use 
fw.createFireworksDocument().
See also