|
Flash CS4 Resources |
shape.getCubicSegmentPoints()AvailabilityFlash CS4 Professional. Usageshape.getCubicSegmentPoints(cubicSegmentIndex) Parameters
ReturnsAn array of points that define a cubic curve for the Edge object that corresponds to the specified cubicSegmentIndex (see edge.cubicSegmentIndex). DescriptionMethod; returns an array of points that define a cubic curve. ExampleThe
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);
}
|