User Guide

Filter object 209
filter.angle
Availability
Flash 8.
Usage
filter.angle
Description
Property; a float value that specifies the angle of the shadow or highlight color, in degrees.
Acceptable values are between 0 and 360. This property is defined for Filter objects with a
value of
"bevelFilter", "dropShadowFilter", "gradientBevelFilter", or
"gradientGlowFilter" for the filter.name property.
Example
The following example sets the angle to 120 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].angle = 120;
}
}
fl.getDocumentDOM().setFilters(myFilters);
See also
document.setFilterProperty()
filter.knockout A Boolean value that specifies whether the filter is a
knockout filter (
true) or not (false).
filter.name A string that specifies the type of filter (read-only
property).
filter.quality A string that specifies the blur quality.
filter.saturation A float value that specifies the saturation value of the
filter.
filter.shadowColor A string, hexadecimal value, or integer that represents
the shadow color.
filter.strength An integer that specifies the percentage strength of the
filter.
filter.type A string that specifies the type of bevel or glow.
Property Description