Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 870 Bytes

File metadata and controls

29 lines (19 loc) · 870 Bytes

filter.name

Availability

Flash 8.

Usage

filter.name

Description

Read-only property; a string that specifies the type of filter. The value of this property determines which other properties of the Filter object are available. The value is one of the following: "adjustColorFilter", "bevelFilter", "blurFilter", "dropShadowFilter", "glowFilter", "gradientBevelFilter", or "gradientGlowFilter".

Example

The following example displays the filter names and index positions in the Output panel:

var myFilters = fl.getDocumentDOM().getFilters();
var traceStr = "";
for(i=0; i < myFilters.length; i++){
traceStr = traceStr + " At index " + i + ": " + myFilters[i].name;
}
fl.trace(traceStr); 

See also

document.getFilters(), document.setFilterProperty()