Filter object
219
Example
The following example sets the saturation value to 0 (grayscale) for the Adjust Color filters on
the selected object(s):
var myFilters = fl.getDocumentDOM().getFilters();
for(i=0; i < myFilters.length; i++){
if(myFilters[i].name == 'adjustColorFilter'){
myFilters[i].saturation = 0;
}
}
fl.getDocumentDOM().setFilters(myFilters);
See also
document.setFilterProperty()
filter.shadowColor
Availability
Flash 8.
Usage
filter.shadowColor
Description
Property; the color of the shadow, in one of the following formats:
■
A string in the format
"#RRGGBB"
or
"#RRGGBBAA"
■
A hexadecimal number in the format
0xRRGGBB
■
An integer that represents the decimal equivalent of a hexadecimal number
This property is defined for Filter objects with a value of
"bevelFilter"
for the
filter.name
property.
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...