Flash MX 2004.
path.makeShape([bSupressFill [, bSupressStroke]])
bSuppressFill A Boolean value that, if set to true, suppresses the fill that would be applied to the shape. The default value is false. This parameter is optional.
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.
Nothing.
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.
The following example creates a shape with the current fill and no stroke:
var myPath = fl.drawingLayer.newPath();
myPath.makeShape(false, true);