Flash CS4 Professional.
shape.getCubicSegmentPoints(cubicSegmentIndex)
cubicSegmentIndex An integer that specifies the cubic segment for which points are returned.
An array of points that define a cubic curve for the Edge object that corresponds to the specified cubicSegmentIndex (see edge.cubicSegmentIndex).
Method; returns an array of points that define a cubic curve.
The following example displays the x and y values for each point on the cubic curve of the first edge of the selection:
var elem = fl.getDocumentDOM().selection[0];
var index = elem.edges[0].cubicSegmentIndex;
var cubicPoints = elem.getCubicSegmentPoints(index);
for (i=0; i<cubicPoints.length; i++) {
fl.trace("index " + i +" x: " + cubicPoints[i].x + " y: " + cubicPoints[i].y);
}