Example
The following command makes one copy of the current frame and places the new frame after the
current frame.
fw.getDocumentDOM().duplicateFrame(-1, 1, "after current", false);
dom.duplicateLayer()
Availability
Fireworks 3.
Usage
dom.duplicateLayer(layerIndex, {howMany}, {where})
Arguments}
An integer value that specifies the layer to duplicate, starting with
layerIndex
specify the current layer, pass
An optional integer that specifies how many times to duplicate the layer. If omitted,
howMany
the layer is duplicated once.
An optional argument that specifies where to put the new layer(s) in relation to the
where
source layer. Acceptable values are
. If omitted,
"end"
Returns
Nothing.
Description
Duplicates a layer.
Example
The following command places three copies of the current layer at the end of the document.
fw.getDocumentDOM().duplicateLayer(-1, 3, "end");
dom.duplicateSelection()
Availability
Fireworks 3.
Usage
dom.duplicateSelection()
Arguments
None.
Returns
Nothing.
142
Chapter 5: Fireworks JavaScript API
here).
–1
"beginning", "before current", "after current",
is assumed.
"before current"
(although, to
0
and
Need help?
Do you have a question about the FIREWORKS MX 2004-EXTENDING FIREWORKS and is the answer not in the manual?
Questions and answers