shape.getCubicSegmentPoints()
#### Availability
Flash CS4 Professional.
#### Usage
shape.getCubicSegmentPoints(cubicSegmentIndex)
#### Parameters
cubicSegmentIndex An integer that specifies the cubic segment for which points are returned.
#### Returns
An array of points that define a cubic curve for the Edge object that corresponds to the specified cubicSegmentIndex
(see edge.cubicSegmentIndex (../Edge_object/edge.md)).
#### Description
Method; returns an array of points that define a cubic curve.
#### Example
The following example displays the x and y values for each point on the cubic curve of the first edge of the selection:
javascript
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);
}