Packagecom.adobe.flashpro
Classpublic class Filter
InheritanceFilter Inheritance com.adobe.csawlib.CSHostObject

This object contains all the properties for all filters. The .name property determines which other properties are applicable to each filter.



Public Properties
 PropertyDefined By
  angle : Number
Angle.
Filter
  blurX : Number
Amount to blur in x direction.
Filter
  blurY : Number
Amount to blur in y direction.
Filter
  brightness : Number
Brightness of adjust color filter.
Filter
  color : String
Filter color, 'RRGGBBAA'.
Filter
  contrast : Number
Contrast of adjust color filter.
Filter
  distance : Number
Filter distance.
Filter
  hideObject : Boolean
When true, the source image is not drawn.
Filter
  highlightColor : String
Bevel highlight color.
Filter
  hue : Number
Hue of adjust color filter.
Filter
  inner : Boolean
To determine whether the filter is inner (true) or outer (false).
Filter
  knockout : Boolean
Knockout source image.
Filter
  name : String
[read-only] Read-only property.
Filter
  quality : String
Blur quality, 'low', 'medium', and high ('high' is approximate to Gaussian blur).
Filter
  saturation : Number
Saturation of adjust color filter.
Filter
  shadowColor : String
Bevel shadow color.
Filter
  strength : int
Filter strength.
Filter
  type : String
'inner', 'outer', or 'full'.
Filter
Property Detail
angleproperty
angle:Number

Angle. 0 to 360. Applicable to filters with .name as 'bevelFilter', 'dropShadowFilter', 'gradientGlowFilter', and 'gradientBevelFilter'.


Implementation
    public function get angle():Number
    public function set angle(value:Number):void
blurXproperty 
blurX:Number

Amount to blur in x direction. 0 to 255. Applicable to filters with .name as 'blurFilter', 'dropShadowFilter', 'glowFilter', 'bevelFilter', 'gradientGlowFilter', 'gradientBevelFilter'.


Implementation
    public function get blurX():Number
    public function set blurX(value:Number):void
blurYproperty 
blurY:Number

Amount to blur in y direction. 0 to 255. Applicable to filters with .name as 'blurFilter', 'dropShadowFilter', 'glowFilter', 'bevelFilter', 'gradientGlowFilter', 'gradientBevelFilter'.


Implementation
    public function get blurY():Number
    public function set blurY(value:Number):void
brightnessproperty 
brightness:Number

Brightness of adjust color filter. -100 to 100. Applicable to filters with .name as 'adjustColorFilter'


Implementation
    public function get brightness():Number
    public function set brightness(value:Number):void
colorproperty 
color:String

Filter color, 'RRGGBBAA'. Applicable to filters with .name as 'glowFilter' and 'dropShadowFilter'.


Implementation
    public function get color():String
    public function set color(value:String):void
contrastproperty 
contrast:Number

Contrast of adjust color filter. -100 to 100. Applicable to filters with .name as 'adjustColorFilter'


Implementation
    public function get contrast():Number
    public function set contrast(value:Number):void
distanceproperty 
distance:Number

Filter distance. -255 to 255. Applicable to filters with .name as 'dropShadowFilter', 'bevelFilter', 'gradientGlowFilter', 'gradientBevelFilter'.


Implementation
    public function get distance():Number
    public function set distance(value:Number):void
hideObjectproperty 
hideObject:Boolean

When true, the source image is not drawn. Applicable to filters with .name as "dropShadowFilter".


Implementation
    public function get hideObject():Boolean
    public function set hideObject(value:Boolean):void
highlightColorproperty 
highlightColor:String

Bevel highlight color. 'RRGGBBAA'. Applicable to filters with .name as 'bevelFilter'.


Implementation
    public function get highlightColor():String
    public function set highlightColor(value:String):void
hueproperty 
hue:Number

Hue of adjust color filter. -180 to 180. Applicable to filters with .name as 'adjustColorFilter'


Implementation
    public function get hue():Number
    public function set hue(value:Number):void
innerproperty 
inner:Boolean

To determine whether the filter is inner (true) or outer (false). Applicable to filters with .name as 'dropShadowFilter', 'glowFilter'.


Implementation
    public function get inner():Boolean
    public function set inner(value:Boolean):void
knockoutproperty 
knockout:Boolean

Knockout source image. Applicable to filters with .name as 'dropShadowFilter', 'glowFilter', 'bevelFilter', 'gradientGlowFilter', 'gradientBevelFilter'.


Implementation
    public function get knockout():Boolean
    public function set knockout(value:Boolean):void
nameproperty 
name:String  [read-only]

Read-only property. Other properties depends on this property. 'dropShadowFilter', 'glowFilter', 'bevelFilter', 'blurFilter', 'gradientGlowFilter', 'gradientBevelFilter', 'adjustColorFilter', 'embossFilter', 'findEdgesFilter', 'invertFilter', 'sharpenFilter'


Implementation
    public function get name():String
qualityproperty 
quality:String

Blur quality, 'low', 'medium', and high ('high' is approximate to Gaussian blur). Applicable to filters with .name as 'blurFilter', 'dropShadowFilter', 'glowFilter', 'bevelFilter', 'gradientGlowFilter', 'gradientBevelFilter'.


Implementation
    public function get quality():String
    public function set quality(value:String):void
saturationproperty 
saturation:Number

Saturation of adjust color filter. -100 to 100. Applicable to filters with .name as 'adjustColorFilter'


Implementation
    public function get saturation():Number
    public function set saturation(value:Number):void
shadowColorproperty 
shadowColor:String

Bevel shadow color. 'RRGGBBAA'. Applicable to filters with .name as 'bevelFilter'.


Implementation
    public function get shadowColor():String
    public function set shadowColor(value:String):void
strengthproperty 
strength:int

Filter strength. 0 to 25500(%). Applicable to filters with .name as 'dropShadowFilter', 'glowFilter', 'bevelFilter', 'gradientGlowFilter', 'gradientBevelFilter'.


Implementation
    public function get strength():int
    public function set strength(value:int):void
typeproperty 
type:String

'inner', 'outer', or 'full'. Applicable to filters with .name as 'bevelFilter', 'gradientGlowFilter', and 'gradientBevelFilter'.


Implementation
    public function get type():String
    public function set type(value:String):void