User Guide
280 Fireworks JavaScript API
Arguments
before and after Integers that specify the number of frames to display before and after the
current one. To disable onion skinning, pass
0 for both arguments. To enable onion skinning
for all frames, pass
0 for before and a large number (for example, 99,999) for after.
Returns
Nothing.
Description
Sets the onion-skinning options for the document.
Example
The following command turns on onion skinning two frames before the selected frame and
zero frames after it:
fw.getDocumentDOM().setOnionSkinning(2, 0);
dom.setOpacity()
Availability
Fireworks 3.
Usage
dom.setOpacity(opacity)
Arguments
opacity A float variable between 0 and 100, inclusive.
Returns
Nothing.
Description
Sets the opacity of the selection to the specified value.
Example
The following command sets the selected item to an opacity of 55%:
fw.getDocumentDOM().setOpacity(55);