User Guide
146 Fireworks JavaScript API
dom.addNewSinglePointPath()
Availability
Fireworks 3.
Usage
dom.addNewSinglePointPath(controlPointFirst, controlPointLast, bCopyAttrs)
Arguments
controlPointFirst, mjainPoint, and controlPointLast Points that specify the x,y
coordinates of the preceding control point, the main point, and the following control point of
the Bézier path (see “Point data type” on page 12).
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 Bézier 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 Bézier 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)