User Guide

Document object 167
Description
Method; spaces the objects in the selection evenly.
Example
The following example spaces the objects horizontally, relative to the Stage:
fl.getDocumentDOM().space("horizontal",true);
The following example spaces the objects horizontally, relative to each other:
fl.getDocumentDOM().space("horizontal");
The following example spaces the objects horizontally, relative to each other, with
bUseDcoumentBounds expressly set to false:
fl.getDocumentDOM().space("horizontal",false);
See also
document.getAlignToDocument(), document.setAlignToDocument()
document.straightenSelection()
Availability
Flash MX 2004.
Usage
document.straightenSelection()
Parameters
None.
Returns
Nothing.
Description
Method; straightens the currently selected strokes. This method is equivalent to using the
Straighten button in the Tools panel.
Example
The following example straightens the curve of the current selection:
fl.getDocumentDOM().straightenSelection();