Packagede.nulldesign.nd3d.material
Classpublic class ReflectBitmapMaterial
InheritanceReflectBitmapMaterial Inheritance BitmapMaterial Inheritance Material

...



Public Properties
 PropertyDefined by
 Inheritedadditive : Boolean = false
Material
 Inheritedalpha : Number
BitmapMaterial
 InheritedcalculateLights : Boolean = true
Material
 Inheritedcolor : uint
BitmapMaterial
 InheritedcolorTransform : ColorTransform
BitmapMaterial
 InheritedcustomRenderer : TextureRenderer
Material
 InheriteddoubleSided : Boolean = false
Material
 InheritedisInteractive : Boolean = false
Material
 InheritedisSprite : Boolean
Material
 Inheritedsmoothed : Boolean
Material
  texture : BitmapData
[read-only]
ReflectBitmapMaterial
Protected Properties
 PropertyDefined by
 Inherited_alpha : Number = 1
Material
 Inherited_color : uint = 0xffffff
Material
 Inherited_ct : ColorTransform
BitmapMaterial
  gradient : Shape
ReflectBitmapMaterial
 InheritedisDirty : Boolean
BitmapMaterial
  isReflectDirty : Boolean
ReflectBitmapMaterial
  ratio : Number
ReflectBitmapMaterial
  reference : BitmapMaterial
ReflectBitmapMaterial
  tempBmp : BitmapData
ReflectBitmapMaterial
 Inherited_texture : BitmapData = null
Material
  topAlpha : Number
ReflectBitmapMaterial
 InheritedtransformedTexture : BitmapData
BitmapMaterial
Public Methods
 MethodDefined by
  
ReflectBitmapMaterial(reference:BitmapMaterial, ratio:Number = 0.3, topAlpha:Number = 0.3)
Create a material reflection.
ReflectBitmapMaterial
 Inherited
BitmapMaterial
  
update():void
ReflectBitmapMaterial
  
ReflectBitmapMaterial
Protected Methods
 MethodDefined by
  
createGradient(w:int, h:int):void
ReflectBitmapMaterial
 Inherited
getDefaultTransform():ColorTransform
BitmapMaterial
Property detail
gradientproperty
protected var gradient:Shape
isReflectDirtyproperty 
protected var isReflectDirty:Boolean
ratioproperty 
protected var ratio:Number
referenceproperty 
protected var reference:BitmapMaterial
tempBmpproperty 
protected var tempBmp:BitmapData
textureproperty 
texture:BitmapData  [read-only]Implementation
    public function get texture():BitmapData
topAlphaproperty 
protected var topAlpha:Number
Constructor detail
ReflectBitmapMaterial()constructor
public function ReflectBitmapMaterial(reference:BitmapMaterial, ratio:Number = 0.3, topAlpha:Number = 0.3)

Create a material reflection.

Parameters
reference:BitmapMaterial — Material to reflect
 
ratio:Number (default = 0.3) — Height ratio of the reflection
 
topAlpha:Number (default = 0.3) — Maximum alpha of the reflection
Method detail
createGradient()method
protected function createGradient(w:int, h:int):voidParameters
w:int
 
h:int
update()method 
public override function update():void
updateReflect()method 
public function updateReflect():void