dom.addNewStar()
Availability
Fireworks 3
Usage
dom.AddNewStar(numSides, spikiness, bIsStar, centerPoint, outsidePoint)
Arguments
An integer that specifies the number of sides of the new path.
numSides
A floating-point value that controls the regularity of the star or polygon. Pass
spikiness
have Fireworks calculate a good value, or pass a value between 0 and 1 for manual control.
If
bIsStar
bIsStar
a regular polygon with the specified number of sides is created.
centerPoint
on page
11).
outsidePoint
Returns
Nothing.
Description
Adds a new star- or polygon-shaped path.
Example
The following command adds a five-sided star.
fw.getDocumentDOM().addNewStar(5, -1, true, {x:186, y:72}, {x:265, y:89});
dom.addNewSymbol()
Availability
Fireworks 3.
Usage
dom.addNewSymbol(type, name, bAddToDoc)
Arguments
Acceptable values are
type
A string that specifies the name of the symbol.
name
If
bAddToDoc
bAddToDoc
document. If
false
symbol is inserted into the document.
Returns
Nothing.
116
Chapter 5: Fireworks JavaScript API
is
, a star with the specified number of points is created. If it is
true
Specifies the center point of the star or polygon (see
Specifies a point on the radius of the star or polygon.
"graphic"
is
, an instance of the symbol is inserted into the center of the
true
, the symbol is created in the document's library, but no instance of the
,
or
"button",
"animation"
false
"Point data type"
.
to
-1
,
Need help?
Do you have a question about the FIREWORKS MX 2004-EXTENDING FIREWORKS and is the answer not in the manual?
Questions and answers