Extending Flash |
|
|
|
| Objects > Document object > document.space() | |||
Flash MX 2004.
document.space(direction[,bUseDocumentBounds])
direction A string that specifies the direction in which to space the objects in the selection. Acceptable values are "horizontal" or "vertical".
bUseDocumentBounds A Boolean value that, when set to true, spaces the objects to the document bounds. Otherwise, the method uses the bounds of the selected objects. The default is false. This parameter is optional.
Nothing.
Method; spaces the objects in the selection evenly.
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);
document.getAlignToDocument(), document.setAlignToDocument()
|
|
|
|