Packagecom.whirled.contrib.platformer.display
Classpublic class BitmapParallaxBackground
InheritanceBitmapParallaxBackground Inheritance Layer Inheritance flash.display.Sprite



Public Properties
 PropertyDefined by
 InheriteddisplayCount : int
Layer
Protected Properties
 PropertyDefined by
  _bd : BitmapData
BitmapParallaxBackground
  _hasDrawn : Boolean
BitmapParallaxBackground
  _layers : Array
BitmapParallaxBackground
 Inherited_snapToPixel : Boolean = true
Set to true and all coordinates will be floored.
Layer
Public Methods
 MethodDefined by
  
BitmapParallaxBackground
  
addNewLayer(disp:DisplayObject, scaleX:int = 1, scaleY:int = 1, offX:int = 0, offY:int = 0, tileY:Boolean = false):void
BitmapParallaxBackground
  
shutdown():void
BitmapParallaxBackground
  
update(nX:Number, nY:Number, scale:Number = 1):void
BitmapParallaxBackground
Property detail
_bdproperty
protected var _bd:BitmapData
_hasDrawnproperty 
protected var _hasDrawn:Boolean
_layersproperty 
protected var _layers:Array
Constructor detail
BitmapParallaxBackground()constructor
public function BitmapParallaxBackground()
Method detail
addNewLayer()method
public function addNewLayer(disp:DisplayObject, scaleX:int = 1, scaleY:int = 1, offX:int = 0, offY:int = 0, tileY:Boolean = false):voidParameters
disp:DisplayObject
 
scaleX:int (default = 1)
 
scaleY:int (default = 1)
 
offX:int (default = 0)
 
offY:int (default = 0)
 
tileY:Boolean (default = false)
shutdown()method 
public override function shutdown():void
update()method 
public override function update(nX:Number, nY:Number, scale:Number = 1):voidParameters
nX:Number
 
nY:Number
 
scale:Number (default = 1)