
36
EXTENDING FIREWORKS
The Document object
Las
t
up
d
a
ted
12/8/2009
guidekind
Acceptable values for
guidekind
are
"horizontal"
and
"vertical"
. If
guidekind
is
"horizontal"
, it
is assumed that
position
is a
y
coordinate; if
"vertical"
, it is an
x
coordinate.
Returns
Nothing.
Description
Adds a guide to the document. If a guide already exists at the specified position, this function has no effect.
Example
The following command adds a vertical guide at the x coordinate of 217:
fw.getDocumentDOM().addGuide(217, "vertical");
dom.addMasterPageLayer()
Availability
Fireworks CS3.
Usage
dom.addMasterPageLayer()
Arguments
To add a master page layer, the document must already have a master page in it. Include the level where the master
page layer should be inserted. For example:
fw.getDocumentDOM().addMasterPageLayer(-1)
Returns
Nothing.
Description
Adds a master page layer to the bottom of the layer hierarchy for the current page.
dom.addNewHotspot()
Availability
Fireworks 3.
Usage
dom.addNewHotspot(hotspot-kind, hotspot-shape, boundingRectangle)
Arguments
hotspot-kind
Acceptable values are
"hotspot"
and
"slice"
.
hotspot-shape
Acceptable values are
"rectangle"
and
"oval"
.
boundingRectangle
A rectangle that specifies the bounds within which the hotspot is placed (see “
Rectangle data
type
” on page 8).
Содержание 65011817 - Fireworks CS4 - Mac
Страница 1: ...Extending ADOBE FIREWORKS CS4...