Adobe 38039927 - Fireworks CS3 - PC Extended User Manual page 202

Extending fireworks
Hide thumbs Also See for 38039927 - Fireworks CS3 - PC:
Table of Contents

Advertisement

fw.revertDocument()
Availability
Fireworks 3.
Usage
fw.revertDocument({document})
Arguments
A Document object, for example,
document
argument is optional. If
document
Returns
Nothing.
Description
Restores the specified document to its previously saved version.
fw.runScript()
Availability
Fireworks 3.
Usage
fw.runScript(filename)
Arguments
The name of the script file to execute. If
filename
), it is assumed to be the name of a file in the Fireworks /Configuration/Commands folder.
"file:///"
Returns
Result of script.
Description
Executes a JavaScript file.
Example
The following command runs a script found in the Align Center to Document.jsf file, which is located in the
Commands folder.
fw.runScript("Align Center to Document.jsf");
fw.saveAll()
Availability
Fireworks 3.
Usage
fw.saveAll()
fw.documents[2]
is omitted or
, the active document is reverted.
null
filename
, that specifies the document to be reverted. This
is not a file URL (that is, if it does not begin with
ADOBE FIREWORKS CS3
198
Extending Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fireworks cs3

Table of Contents