Flash MX 2004.
document.straightenSelection()
None.
Nothing.
Method; straightens the currently selected strokes. This method is equivalent to using the Straighten button in the Tools panel.
The following example straightens the curve of the current selection:
fl.getDocumentDOM().straightenSelection();