document.addFilter()

Availability

Flash 8.

Usage

document.addFilter(filterName)

Parameters

filterName
A string specifying the filter to be added to the Filters list and enabled for the selected object(s). Acceptable values are "adjustColorFilter", "bevelFilter", "blurFilter", "dropShadowFilter", "glowFilter", "gradientBevelFilter", and "gradientGlowFilter".

Returns

Nothing.

Description

Method; applies a filter to the selected objects and places the filter at the end of the Filters list.

Example

The following example applies a glow filter to the selected object(s):

fl.getDocumentDOM().addFilter("glowFilter");