|
Flash CS4 Resources |
fl.saveDocument()Parameters
ReturnsA Boolean value: true if the save operation completes successfully; false otherwise. 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 false is returned. To allow an unsaved or unmodified file to be saved, use fl.saveDocumentAs(). ExampleThe 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")); |