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
to the library and places an
text
instance of it in the document:
fw.getDocumentDOM().addNewSymbol("graphic", "text", true);
dom.addNewText()
Availability
Fireworks 3.
Usage
dom.AddNewText(boundingRectangle, bInitFromPrefs)
Arguments
A rectangle that specifies the bounds within which to place the new
boundingRectangle
text box (see
"Rectangle data type" on page
12).
If
is
, the default values for all style properties are
bInitFromPrefs
bInitFromPrefs
false
used. If it is
, the most recent values set by the user are used.
true
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);
148
Fireworks JavaScript API
Need help?
Do you have a question about the FIREWORKS 8-EXTENDING FIREWORKS and is the answer not in the manual?
Questions and answers