
251
EXTENDING FLASH CS4 PROFESSIONAL
flash object (fl)
Returns
A 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().
Description
Method; saves the specified document as a FLA document.
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"));
See also
document.save(), document.saveAndCompact(), fl.saveAll(), fl.saveDocumentAs()
fl.saveDocumentAs()
Availability
Flash MX 2004.
Usage
fl.saveDocumentAs(document)
Parameters
document A Document object that specifies the document to save. If document is null, the active document is saved.
Returns
A Boolean value: true if the Save As operation completes successfully; false otherwise.
Description
Method; displays the Save As dialog box for the specified document.
Example
The following example prompts the user to save the specified document and then displays an alert message that
indicates whether the document was saved:
alert(fl.saveDocumentAs(fl.documents[1]));
See also
document.save(), document.saveAndCompact(), fl.saveAll(), fl.saveDocument()
Commenti su questo manuale