User Guide
338 Fireworks JavaScript API
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. If filename is not a file URL
(that is, if it does not begin with
"file:///"), the file is saved in the Fireworks MX/
Configuration/Commands folder.
Returns
Nothing.
Description
Saves the specified string of JavaScript code as a JSF command file.
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.