MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 250

Extending flash
Table of Contents

Advertisement

See also
,
document.save()
document.saveAndCompact()
fl.saveDocumentAs()
fl.saveDocument()
Availability
Flash MX 2004.
Usage
fl.saveDocument( document [, fileURI] )
Parameters
A
Document object
document
the active document is saved.
A string, expressed as a file:/// URI, that specifies the name of the saved document.
fileURI
If the
parameter is
fileURI
This parameter is optional.
Returns
A Boolean value:
true
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()
250
Objects
that specifies the document to be saved. If
or omitted, the document is saved with its current name.
null
if the save operation completes successfully;
,
fl.saveDocument()
false
,
,
fl.saveAll()
fl.saveDocumentAs()
,
is
,
document
null
otherwise.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents