Path.newcontour() – Adobe Extending Flash Professional CS5 User Manual
Page 382
360
EXTENDING FLASH PROFESSIONAL
Path object
Last updated 5/2/2011
bSupressStroke
A Boolean value that, if set to
true
, suppresses the stroke that would be applied to the shape. The
default value is
false
. This parameter is optional.
Returns
Nothing.
Description
Method; creates a shape on the Stage by using the current stroke and fill settings. The path is cleared after the shape is
created. This method has two optional parameters for suppressing the fill and stroke of the resulting shape object. If
you omit these parameters or set them to
false
, the current values for fill and stroke are used.
Example
The following example creates a shape with the current fill and no stroke:
var myPath = fl.drawingLayer.newPath();
myPath.makeShape(false, true);
path.newContour()
Availability
Flash MX 2004.
Usage
path.newContour()
Parameters
None.
Returns
Nothing.
Description
Method; starts a new contour in the path.
Example
The following example creates a hollow square: