Parameters
A string that specifies where to distribute the selected object. Acceptable
distributemode
values are
,
,
,
,
"left edge"
"horizontal center"
"right edge"
"top edge"
"vertical
, and
.
center"
"bottom edge"
A Boolean value that, when set to
, distributes the selected
bUseDocumentBounds
true
objects using the bounds of the document. Otherwise, the method uses the bounds of the
selected object. The default is
.
false
Returns
Nothing.
Description
Method; distributes the selection.
Example
The following example distributes the selected objects by the top edge:
fl.getDocumentDOM().distribute("top edge");
The following example distributes the selected objects by top edge and expressly sets the
parameter:
bUseDcoumentBounds
fl.getDocumentDOM().distribute("top edge", false);
The following example distributes the selected objects by their top edges, using the bounds of
the document:
fl.getDocumentDOM().distribute("top edge", true);
See also
,
document.getAlignToDocument()
document.setAlignToDocument()
document.distributeToLayers()
Availability
Flash MX 2004.
Usage
document.distributeToLayers()
Parameters
None.
98
Objects
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?