
43
EXTENDING FIREWORKS
The Document object
Las
t
up
d
a
ted
12/8/2009
fw.getDocumentDOM().addNewStar(5, -1, true, {x:186, y:72}, {x:265, y:89});
dom.addNewSubLayer()
Availability
Fireworks CS3.
Usage
dom.addNewSubLayer(
index,
name, shared
)
Arguments
index
A long value that specifies the index of the parent layer for the new sub layer.
name
A string that specifies the name for the new sub layer. If
name
is
null
, a new layer name is generated.
shared
A Boolean value that specifies whether the new sub layer is shared.
Returns
A string value that contains the name of the new sub layer.
Description
Adds a new sub layer to the document and makes it the current layer.
Example
The following command adds a new unshared sub layer to layer index 0 with a default name that is generated by
Fireworks:
fw.getDocumentDOM().addNewSubLayer(0, null, false);
dom.addNewSymbol()
Availability
Fireworks 3.
Usage
dom.addNewSymbol(
type, name, bAddToDoc, status
)
Arguments
type
Acceptable values are
"graphic"
,
"button",
or
"animation"
.
name
A string that specifies the name of the symbol.
bAddToDoc
A Boolean value. If
bAddToDoc
is
true
, an instance of the symbol is inserted into the center of the
document. If
false
, the symbol is created in the document’s library, but no instance of the symbol is inserted into the
document.
status
A Boolean value that toggles 9-slice scaling between enabled and disabled.
Returns
Nothing.
Содержание 65011817 - Fireworks CS4 - Mac
Страница 1: ...Extending ADOBE FIREWORKS CS4...