354
Fireworks JavaScript API
Description
Gets the JavaScript equivalent of the specified steps and executes them.
See also
fw.historyPalette.getStepsAsJavaScript()
fw.historyPalette.saveAsCommand()
Availability
Fireworks 3.
Usage
fw.historyPalette.saveAsCommand(
array of indexes
, {
filename
})
Arguments
array of indexes
Indicates which steps from the History panel should be saved. For
example, to save the first, third, and sixth steps in the History panel, pass [
0
,
2
,
5
]. If this
argument is
null
, the currently selected steps are used.
filename
An optional string that specifies a name for the JSF command file. It can be any
string, including a file:// URL. If
filename
is omitted or
null
, the user is prompted for a
filename. If
filename
is not a file://URL, the file is saved in the Fireworks MX/
Configuration/Commands folder with the specified filename.
Returns
Nothing.
Description
Gets the JavaScript equivalent of the specified steps and saves them as a JSF command file.
fw.historyPalette.setSelection()
Availability
Fireworks 3.
Usage
fw.historyPalette.setSelection(
array of indexes
)
Arguments
array of indexes
Specifies which steps in the History panel are selected. Values are zero-
based. For example, to select the first, third, and sixth steps in the History panel, pass [
0
,
2
,
5
].
Summary of Contents for FIREWORKS 8-EXTENDING FIREWORKS
Page 1: ...Extending Fireworks ...
Page 4: ...4 Contents ...
Page 358: ...358 Fireworks JavaScript API ...
Page 372: ...372 Index ...