
74
EXTENDING FIREWORKS
The Document object
Las
t
up
d
a
ted
12/8/2009
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.
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.duplicatePage()
Availability
Fireworks CS3.
Usage
dom.duplicatePage(
pageNum
)
Arguments
pageNum
An long value that specifies the page number of the page to be duplicated.
Returns
Nothing.
Description
Duplicates a page. For example:
fw.getDocumentDOM().duplicatePage(1)
Содержание 65011817 - Fireworks CS4 - Mac
Страница 1: ...Extending ADOBE FIREWORKS CS4...