beautypg.com

Document.disablefilter(), Document.disableotherfilters() – Adobe Extending Flash Professional CS5 User Manual

Page 112

background image

90

EXTENDING FLASH PROFESSIONAL

Document object

Last updated 5/2/2011

Example
The following example disables all filters on the selected objects:

fl.getDocumentDOM().disableAllFilters();

See also

document.addFilter()

,

document.changeFilterOrder()

,

document.disableFilter()

,

document.disableOtherFilters()

,

document.enableAllFilters()

,

document.getFilters()

,

document.removeAllFilters()

,

Filter object

document.disableFilter()

Availability
Flash 8.

Usage

document.disableFilter(filterIndex)

Parameters

filterIndex

An integer representing the zero-based index of the filter in the Filters list.

Returns
Nothing.

Description
Method; disables the specified filter in the Filters list.

Example
The following example disables the first and third filters (index values of 0 and 2) in the Filters list from the selected
object(s):

fl.getDocumentDOM().disableFilter(0);

fl.getDocumentDOM().disableFilter(2);

See also

document.addFilter()

,

document.changeFilterOrder()

,

document.disableAllFilters()

,

document.disableOtherFilters()

,

document.enableFilter()

,

document.getFilters()

,

document.removeFilter()

,

Filter object

document.disableOtherFilters()

Availability
Flash 8.

Usage

document.disableOtherFilters(enabledFilterIndex)

This manual is related to the following products: