User Guide
Document functions 123
dom.applyStyle()
Availability
Fireworks 3.
Usage
dom.applyStyle(styleName, styleIndex)
Arguments
styleName
A string that specifies the style name to be applied.
styleIndex An index to the style to apply. This is usually zero. However, if there are multiple
styles with the same name,
styleIndex is used to resolve the ambiguity (0 references the first
style with that name, 1 references the second, and so on).
Returns
Nothing.
Description
Applies the specified style to the selection.
Example
The following command applies the first style that Fireworks encounters named “Style 7”, which,
in this case, is a default style.
fw.getDocumentDOM().applyStyle("Style 7", 0);
dom.arrange()
Availability
Fireworks 3.
Usage
dom.arrange(arrangemode)
Arguments
arrangemode
Acceptable values for arrangemode are "back", "backward", "forward",
and
"front".
Returns
Nothing.
Description
Arranges the selection.
Example
The following command brings the selected items to the front.
fw.getDocumentDOM().arrange("front");