![MACROMEDIA FLASH 8-EXTENDING FLASH Manual Download Page 98](http://html1.mh-extra.com/html/macromedia/flash-8-extending-flash/flash-8-extending-flash_manual_3348049098.webp)
98
Objects
Parameters
distributemode
A string that specifies where to distribute the selected object. Acceptable
values are
"left edge"
,
"horizontal center"
,
"right edge"
,
"top edge"
,
"vertical
center"
, and
"bottom edge"
.
bUseDocumentBounds
A Boolean value that, when set to
true
, distributes the selected
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
bUseDcoumentBounds
parameter:
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.
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...