
255
EXTENDING FLASH PROFESSIONAL
flash object (fl)
Last updated 5/2/2011
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()
fl.scriptURI
Availability
Flash CS3 Professional.
Usage
fl.scriptURI
Description
Read-only property; a string that represents the path of the currently running JSFL script, expressed as a file:/// URI.
If the script was called from
fl.runScript(), this property represents the path of the immediate parent script. That
is, it doesn’t traverse multiple calls to fl.runScript() to find the path of the original calling script.
Example
The following example displays the path of the currently running JSFL script in the Output panel:
fl.trace(fl.scriptURI);
See also
fl.runScript()
Komentáře k této Příručce