Packageaway3d.overlays
Classpublic class LensFlare
InheritanceLensFlare Inheritance flash.display.Sprite
Implements IOverlay



Public Properties
 PropertyDefined By
  alphaFactor : Number = 50
LensFlare
  alphaMax : Number = 1
LensFlare
  alphaMin : Number = 0.5
LensFlare
  burnFactor : Number = 10
LensFlare
  burnMethod : uint
[write-only]
LensFlare
  haloScaleFactor : Number = 50
LensFlare
  rotationFactor : Number = 0.25
LensFlare
  scaleFactor : Number = 50
LensFlare
  scaleMax : Number = 3
LensFlare
  spreadFactor : Number = 0.5
LensFlare
  useAlpha : Boolean = true
LensFlare
  useBurning : Boolean = true
LensFlare
  useRotation : Boolean = true
LensFlare
  useScaling : Boolean = true
LensFlare
Public Methods
 MethodDefined By
  
LensFlare(source:Object3D, camera:Camera3D)
LensFlare
  
addFlareAsset(sprite:Sprite, cacheAsBitmap:Boolean = false):void
LensFlare
  
setBurnClip(sprite:Sprite):void
LensFlare
  
setHaloAsset(sprite:Sprite):void
LensFlare
  
update():void
LensFlare
Public Constants
 ConstantDefined By
  BURN_METHOD_BRIGHTNESS : uint = 1
[static]
LensFlare
  BURN_METHOD_COLOR_TRANSFORM : uint = 0
[static]
LensFlare
Property Detail
alphaFactorproperty
public var alphaFactor:Number = 50

alphaMaxproperty 
public var alphaMax:Number = 1

alphaMinproperty 
public var alphaMin:Number = 0.5

burnFactorproperty 
public var burnFactor:Number = 10

burnMethodproperty 
burnMethod:uint  [write-only]


Implementation
    public function set burnMethod(value:uint):void
haloScaleFactorproperty 
public var haloScaleFactor:Number = 50

rotationFactorproperty 
public var rotationFactor:Number = 0.25

scaleFactorproperty 
public var scaleFactor:Number = 50

scaleMaxproperty 
public var scaleMax:Number = 3

spreadFactorproperty 
public var spreadFactor:Number = 0.5

useAlphaproperty 
public var useAlpha:Boolean = true

useBurningproperty 
public var useBurning:Boolean = true

useRotationproperty 
public var useRotation:Boolean = true

useScalingproperty 
public var useScaling:Boolean = true

Constructor Detail
LensFlare()Constructor
public function LensFlare(source:Object3D, camera:Camera3D)



Parameters
source:Object3D
 
camera:Camera3D
####INIT####
Method Detail
addFlareAsset()method
public function addFlareAsset(sprite:Sprite, cacheAsBitmap:Boolean = false):void

Parameters

sprite:Sprite
 
cacheAsBitmap:Boolean (default = false)

setBurnClip()method 
public function setBurnClip(sprite:Sprite):void

Parameters

sprite:Sprite

setHaloAsset()method 
public function setHaloAsset(sprite:Sprite):void

Parameters

sprite:Sprite

update()method 
public function update():void

Constant Detail
BURN_METHOD_BRIGHTNESSConstant
public static const BURN_METHOD_BRIGHTNESS:uint = 1

BURN_METHOD_COLOR_TRANSFORMConstant 
public static const BURN_METHOD_COLOR_TRANSFORM:uint = 0