| Package | com.whirled.contrib.platformer.display |
| Class | public class BitmapParallaxBackground |
| Inheritance | BitmapParallaxBackground Layer flash.display.Sprite |
| Property | Defined by | ||
|---|---|---|---|
| _bd : BitmapData | BitmapParallaxBackground | ||
| _hasDrawn : Boolean | BitmapParallaxBackground | ||
| _layers : Array | BitmapParallaxBackground | ||
![]() | _snapToPixel : Boolean = true Set to true and all coordinates will be floored.
| Layer | |
| Method | Defined 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 | ||
| _bd | property |
protected var _bd:BitmapData
| _hasDrawn | property |
protected var _hasDrawn:Boolean
| _layers | property |
protected var _layers:Array
| BitmapParallaxBackground | () | constructor |
public function BitmapParallaxBackground()
| 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) |