Document.distributetolayers(), Document.docclass – Adobe Extending Flash Professional CS5 User Manual
Page 114
92
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
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.distributeToLayers()
Availability
Flash MX 2004.
Usage
document.distributeToLayers()
Parameters
None.
Returns
Nothing.
Description
Method; performs a distribute-to-layers operation on the current selection—equivalent to selecting Distribute to
Layers. This method displays an error if there is no selection.
Example
The following example distributes the current selection to layers:
fl.getDocumentDOM().distributeToLayers();
document.docClass
Availability
Flash CS3 Professional.
Usage
document.docClass
Description
Property; a string that specifies the top-level ActionScript 3.0 class associated with the document. If the document isn’t
configured to use ActionScript 3.0, this property is ignored.