
42
EXTENDING FIREWORKS
The Document object
Las
t
up
d
a
ted
12/8/2009
Arguments
controlPointFirst
,
mainpoint
, and
controlPointLast
Points that specify the x,y coordinates of the preceding
control point, the main point, and the following control point of the Bezier path (see “
Point data type
” on page 8).
bCopyAttrs
If bCopyAttrs is
false
, the path’s stroke and fill are copied directly from the document’s current stroke
and fill settings. If it is
true
, the path’s fill is set to None, and the brush is set to something other than None.
Returns
Nothing.
Description
Adds a new path that consists of a single Bezier point. The path uses the default fill, stroke, and so on, and is added on
the current frame and layer. The point is selected after it is added.
Example
The following command adds a new path that consists of a single Bezier point at the specified coordinates and copies
the path’s stroke and fill from the document’s current stroke and fill settings:
fw.getDocumentDOM().addNewSinglePointPath({x:150, y:63}, {x:150, y:63}, {x:150, y:63},
false);
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 8).
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:
Содержание 65011817 - Fireworks CS4 - Mac
Страница 1: ...Extending ADOBE FIREWORKS CS4...