180
Fireworks JavaScript API
where
Acceptable values are
"beginning"
,
"before current"
,
"after
current"
, and
"end"
.
bDupeSelectionOnly
If
bDupeSelectionOnly
is
true
, only items in the specified frame
that are selected are duplicated to the new frame.
Returns
Nothing.
Description
Duplicates a frame.
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}
layerIndex
An integer value that specifies the layer to duplicate, starting with
0
(although,
to specify the current layer, pass
–1
here).
howMany
An optional integer that specifies how many times to duplicate the layer. If
omitted, the layer is duplicated once.
where
An optional argument that specifies where to put the new layer(s) in relation to the
source layer. Acceptable values are
"beginning", "before current", "after current",
and
"end"
. If omitted,
"before current"
is assumed.
Returns
Nothing.
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 ...