Flash CS4 Professional.
shape.numCubicSegments
Read-only property; the number of cubic segments in the shape.
Assuming a square or rectangle shape is selected, the following code displays "4" in the Output panel:
var theShape = fl.getDocumentDOM().selection[0];
fl.trace(theShape.numCubicSegments);