![MACROMEDIA FLASH 8-EXTENDING FLASH Manual Download Page 220](http://html1.mh-extra.com/html/macromedia/flash-8-extending-flash/flash-8-extending-flash_manual_3348049220.webp)
220
Objects
Example
The following example sets the shadow color to
"#ff00003e"
for the Bevel filters on the
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"
,
"glowFilter"
,
"gradientGlowFilter"
, or
"gradientBevelFilter"
for the
filter.name
property.
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()
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...