Document functions
117
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 11
).
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 11
).
Summary of Contents for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER
Page 1: ...Extending Fireworks...
Page 4: ...4 Contents...
Page 8: ...8 Chapter 1 Extending Fireworks Overview...
Page 102: ...102 Chapter 4 Auto Shapes...