116
Chapter 5: Fireworks JavaScript API
dom.addNewStar()
Availability
Fireworks 3
Usage
dom.AddNewStar(
numSides
,
spikiness
,
bIsStar
,
centerPoint
,
outsidePoint
)
Arguments
numSides
An integer that specifies the number of sides of the new path.
spikiness
A floating-point value that controls the regularity of the star or polygon. Pass
-1
to
have Fireworks calculate a good value, or pass a value between 0 and 1 for manual control.
bIsStar
If
bIsStar
is
true
, a star with the specified number of points is created. If it is
false
,
a regular polygon with the specified number of sides is created.
centerPoint
Specifies the center point of the star or polygon (see
“Point data type”
on page 11
).
outsidePoint
Specifies a point on the radius of the star or polygon.
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
type
Acceptable values are
"graphic"
,
"button",
or
"animation"
.
name
A string that specifies the name of the symbol.
bAddToDoc
If
bAddToDoc
is
true
, an instance of the symbol is inserted into the center of the
document. If
false
, the symbol is created in the document’s library, but no instance of the
symbol is inserted into the document.
Returns
Nothing.
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...