beautypg.com

Document.straightenselection(), Document.swapelement() – Adobe Extending Flash Professional CS4 User Manual

Page 185

background image

163

EXTENDING FLASH CS4 PROFESSIONAL

Document object

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();

document.swapElement()

Availability
Flash MX 2004.

Usage

document.swapElement(name)

Parameters

name

A string that specifies the name of the library item to use.

Returns
Nothing.