Extending Flash |
|
|
|
| Objects > flash object (fl) > fl.saveDocument() | |||
Flash MX 2004.
fl.saveDocument(document[,fileURI])
document A Document object that specifies the document to be saved. If document is null, the active document is saved.
fileURI A string, expressed as a file:/// URI, that specifies the name of the saved document. If the fileURI parameter is null or omitted, the document is saved with its current name. This parameter is optional.
A Boolean value: true if the save operation completes successfully; false otherwise.
|
NOTE |
If the file has never been saved, or has not been modified since the last time it was saved, the file isn't saved and |
Method; saves the specified document as a FLA document.
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"));
document.save(), document.saveAndCompact(), fl.saveAll(), fl.saveDocumentAs()
|
|
|
|