Flash MX 2004.
path.close()
None.
Nothing.
Method; appends a point at the location of the first point of the path and extends the path to that point, which closes the path. If the path has no points, no points are added.
The following example creates a closed path:
var myPath = fl.drawingLayer.newPath();
myPath.close();