228
EXTENDING FIREWORKS
The Fireworks Object
Las
t
up
d
a
ted
12/8/2009
See also
fw.exportDocumentAs()
fw.saveJsCommand()
Availability
Fireworks 3.
Usage
fw.saveJsCommand(
jscode, filename
)
Arguments
jscode
The string of code to be saved as a JSF command file.
filename
The name under which the file should be saved.
Returns
Nothing.
Description
Saves the specified string of JavaScript code as a JSF command file. Fireworks writes the file using UTF-8 encoding and
prepends the UTF-8 byte order mark to the file that is written.
fw.setActiveViewScale()
Availability
Fireworks MX.
Usage
fw.setActiveViewScale(
scale, center
)
Arguments
scale
A floating-point number where 1.0 is 100%, or normal view, and 1.5 is 150%. Default is 6%.
center
A point that defines the location in the document at which the view should be centered. This argument can
be used to navigate around different parts of the document.
Returns
Nothing.
Description
Sets the zoom amount and the center of the view for the current document.
fw.setActiveWindow()
Availability
Fireworks 3.