User Guide
208 Objects
Filter object
Availability
Flash 8.
Description
This object contains all the properties for all filters. The filter.name property specifies the
type of filter, and determines which properties are applicable to each filter. See
filter.name.
To return the filter list for an object or objects, use
document.getFilters(). To apply filters
to an object or objects, use
document.setFilters(). See document.getFilters() and
document.setFilters().
Property summary for the Filter object
The following properties can be used with the Filter object.
Property Description
filter.angle A float value that specifies the angle of the shadow or
highlight color, in degrees.
filter.blurX A float value that specifies the amount to blur in the x
direction, in pixels.
filter.blurY A float value that specifies the amount to blur in the y
direction.
filter.brightness A float value that specifies the brightness of the filter.
filter.color A string, hexadecimal value, or integer that represents
the filter color.
filter.contrast A float value that specifies the contrast value of the filter.
filter.distance A float value that specifies the distance between the
filter’s effect and an object, in pixels.
filter.hideObject A Boolean value that specifies whether the source image
is hidden (
true) or displayed (false).
filter.highlightColor A string, hexadecimal value, or integer that represents
the highlight color.
filter.hue A float value that specifies the hue of the filter.
filter.inner A Boolean value that specifies whether the shadow is an
inner shadow (
true) or not (false).
CHAPTER 15
Objects