Example
The following example sets the
object(s):
var myFilters = fl.getDocumentDOM().getFilters();
for(i=0; i < myFilters.length; i++){
if(myFilters[i].name == 'glowFilter'){
myFilters[i].knockout = true;
}
}
fl.getDocumentDOM().setFilters(myFilters);
See also
document.setFilterProperty()
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"
, "
"glowFilter"
gradientBevelFilter
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()
property to
knockout
,
"bevelFilter"
", or "
,
document.setFilterProperty()
for the Glow filters on the selected
true
,
"blurFilter"
gradientGlowFilter
,
"dropShadowFilter"
".
Filter object
,
217
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?