User Guide

flash object 179
Description
Method; saves all open documents, displaying the Save As dialog box for any documents that
were not previously saved. See also
fl.saveDocumentAs(), fl.saveDocument(),
document.save(), and document.saveAndCompact().
Example
The following example saves all open documents.
fl.saveAll();
fl.saveDocument()
Availability
Flash MX 2004.
Usage
fl.saveDocument( document [, fileURI] )
Parameters
document
A Document object that specifies the document to be saved. If document is null, the
active document is saved.
fileURI A string that specifies the name of the saved document, expressed as a file:///URI. If
the
fileURI parameter is null or omitted, the document is saved with its current name. If the
document is not yet saved, Flash displays the Save As dialog box. This parameter is optional.
Returns
A Boolean value: true if the save operation completes successfully; false otherwise.
Description
Method; saves the specified document as a FLA document. See also fl.saveDocumentAs(),
fl.saveAll(), document.save(), and document.saveAndCompact().
Example
The following example saves the current document and two specified documents.
//save the current document
alert(fl.saveDocument(fl.getDocumentDOM()));
//save the specified documents
alert(fl.saveDocument(fl.documents[0], "file:///C|/example1.fla"));
alert(fl.saveDocument(fl.documents[1],"file:///C|/example2.fla"));
fl.saveDocumentAs()
Availability
Flash MX 2004.
Usage
fl.saveDocumentAs( document )