Packagekm.filters
Classpublic final class ReflectionFilter
InheritanceReflectionFilter Inheritance flash.filters.ShaderFilter

The ReflectionFilter class [FlashPlayer 10].
This filter can be used to add a reflection at the bottom of a display object.


Example
import km.filters.*;

var shape:Shape = new Shape();
shape.graphics.beginFill(0xc00000);
shape.graphics.drawRect(0, 0, 40, 40);
addChild(shape);

var filter:ReflectionFilter = new ReflectionFilter(40);
shape.filters = [filter];



Public Properties
 PropertyDefined by
  reflectionLines : int
The amount of lines of the reflection.
ReflectionFilter
  reflectionMaxAlpha : Number
The maximum alpha of the reflection.
ReflectionFilter
  splitLine : int
The line where to start the reflection.
ReflectionFilter
Public Methods
 MethodDefined by
  
ReflectionFilter(splitLine:Number = 128, reflectionLines:Number = 64, reflectionMaxAlpha:Number = 0.4)
Initializes a new ReflectionFilter instance with the specified parameters.
ReflectionFilter
  
clone():BitmapFilter
Returns a copy of this filter object.
ReflectionFilter
Property detail
reflectionLinesproperty
reflectionLines:int  [read-write]

The amount of lines of the reflection. Valid values are from 2 to 4096. The default value is 64.

Implementation
    public function get reflectionLines():int
    public function set reflectionLines(value:int):void
reflectionMaxAlphaproperty 
reflectionMaxAlpha:Number  [read-write]

The maximum alpha of the reflection. Valid values are from 0.01 to 0.99 (floating point). The default value is 0.40.

Implementation
    public function get reflectionMaxAlpha():Number
    public function set reflectionMaxAlpha(value:Number):void
splitLineproperty 
splitLine:int  [read-write]

The line where to start the reflection. Valid values are from 2 to 4096. The default value is 128.
This value has to be equal to or smaller than the height of the object the filter is applied to.

Implementation
    public function get splitLine():int
    public function set splitLine(value:int):void
Constructor detail
ReflectionFilter()constructor
public function ReflectionFilter(splitLine:Number = 128, reflectionLines:Number = 64, reflectionMaxAlpha:Number = 0.4)

Initializes a new ReflectionFilter instance with the specified parameters.

Parameters
splitLine:Number (default = 128)
 
reflectionLines:Number (default = 64)
 
reflectionMaxAlpha:Number (default = 0.4)
Method detail
clone()method
public override function clone():BitmapFilter

Returns a copy of this filter object.

Returns
BitmapFilter