Example
The following example sets the shadow color to
selected object(s):
var myFilters = fl.getDocumentDOM().getFilters();
for(i=0; i < myFilters.length; i++){
if(myFilters[i].name == 'bevelFilter'){
myFilters[i].shadowColor = '#ff00003e';
}
}
fl.getDocumentDOM().setFilters(myFilters);
See also
document.setFilterProperty()
filter.strength
Availability
Flash 8.
Usage
filter.strength
Description
Property; an integer that specifies the percentage strength of the filter. Acceptable values are
between 0 and 25,500. This property is defined for Filter objects with a value of
,
"bevelFilter"
"dropShadowFilter"
"gradientBevelFilter"
Example
The following example sets the strength to 50 for the Glow filters on the selected object(s):
var myFilters = fl.getDocumentDOM().getFilters();
for(i=0; i < myFilters.length; i++){
if(myFilters[i].name == 'glowFilter'){
myFilters[i].strength = 50;
}
}
fl.getDocumentDOM().setFilters(myFilters);
See also
document.setFilterProperty()
220
Objects
,
"glowFilter"
for the
filter.name
for the Bevel filters on the
"#ff00003e"
,
"gradientGlowFilter"
property.
, or
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?