
225
EXTENDING FIREWORKS
The Fireworks Object
Las
t
up
d
a
ted
12/8/2009
Arguments
document
A Document object, for example,
fw.documents[2]
, that specifies the document to be reverted. This
argument is optional. If
document
is omitted or
null
, the active document is reverted.
Returns
Nothing.
Description
Restores the specified document to its previously saved version.
fw.runScript()
Availability
Fireworks 3.
Usage
fw.runScript(
filename
)
Arguments
filename
The name of the script file to execute. If
filename
is not a file URL (that is, if it does not begin with
"file:///"
), it is assumed to be the name of a file in the Fireworks /Configuration/Commands folder.
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()
Arguments
None.
Returns
Nothing.
Содержание 65011817 - Fireworks CS4 - Mac
Страница 1: ...Extending ADOBE FIREWORKS CS4...