beautypg.com

Document.enablefilter() – Adobe Extending Flash Professional CS4 User Manual

Page 119

background image

97

EXTENDING FLASH CS4 PROFESSIONAL

Document object

Usage

document.enableAllFilters()

Parameters
None.

Returns
Nothing.

Description
Method; enables all the filters on the Filters list for the selected object(s).

Example
The following example enables all the filters on the Filters list for the selected object(s):

fl.getDocumentDOM().enableAllFilters();

See also

document.addFilter()

,

document.changeFilterOrder()

,

document.disableAllFilters()

,

document.enableFilter()

,

document.getFilters()

,

document.removeAllFilters()

,

Filter object

document.enableFilter()

Availability
Flash 8.

Usage

document.enableFilter(filterIndex)

Parameters

filterIndex

An integer specifying the zero-based index of the filter in the Filters list to enable.

Returns
Nothing.

Description
Method; enables the specified filter for the selected object(s).

Example
The following example enables the second filter of the selected object(s):

fl.getDocumentDOM().enableFilter(1);

See also

document.addFilter()

,

document.changeFilterOrder()

,

document.disableFilter()

,

document.enableAllFilters()

,

document.getFilters()

,

document.removeFilter()

,

Filter object