beautypg.com

Document.distribute() – Adobe Extending Flash Professional CS5 User Manual

Page 113

background image

91

EXTENDING FLASH PROFESSIONAL

Document object

Last updated 5/2/2011

Parameters

enabledFilterIndex

An integer representing the zero-based index of the filter that should remain enabled after

other filters are disabled.

Returns
Nothing.

Description
Method; disables all filters except the one at the specified position in the Filters list.

Example
The following example disables all filters except the second filter in the list (index value of 1):

fl.getDocumentDom().disableOtherFilters(1);

See also

document.addFilter()

,

document.changeFilterOrder()

,

document.disableAllFilters()

,

document.disableFilter()

,

document.enableFilter()

,

document.getFilters()

,

document.removeFilter()

,

Filter object

document.distribute()

Availability
Flash MX 2004.

Usage

document.distribute(distributemode [, bUseDocumentBounds])

Parameters

distributemode

A string that specifies where to distribute the selected objects. 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 objects. The default is

false

.

Returns
Nothing.

Description
Method; distributes the selection.

Example
The following example distributes the selected objects by their top edges:

fl.getDocumentDOM().distribute("top edge");

The following example distributes the selected objects by their top edges and expressly sets the bUseDcoumentBounds
parameter:

This manual is related to the following products: