
44
EXTENDING FIREWORKS
The Document object
Las
t
up
d
a
ted
12/8/2009
Description
Adds a new symbol to the library and opens the symbol document for editing. Optionally adds an instance of the
symbol to the document.
Example
The following command adds a new graphic symbol called
text
to the library and places an instance of it in the
document:
fw.getDocumentDOM().addNewSymbol("graphic", "text", true);
dom.addNewText()
Availability
Fireworks 3.
Usage
dom.AddNewText(
boundingRectangle, bInitFromPrefs
)
Arguments
boundingRectangle
A rectangle that specifies the bounds within which to place the new text box (see “
Rectangle data
type
” on page 8).
bInitFromPrefs
If
bInitFromPrefs
is
false
, the default values for all style properties are used. If it is
true
, the
most recent values set by the user are used.
Returns
Nothing.
Description
Adds a new empty text block within the specified bounding rectangle. (To place text in the box, use
dom.setTextRuns()
.)
Example
The following command adds a text box with the most recently used style properties:
fw.getDocumentDOM().addNewText({left:43, top:220, right:102, bottom:232}, true);
dom.addSwapImageBehaviorFromPoint()
Availability
Fireworks 3.
Usage
dom.AddSwapImageBehaviorFromPoint(
where
)
Arguments
where
A point that specifies the
x,y
coordinates of the hotspot or slice that contains the swap image behavior to be
added (see “
Point data type
” on page 8).
Содержание 65011817 - Fireworks CS4 - Mac
Страница 1: ...Extending ADOBE FIREWORKS CS4...