| Package | com.whirled.contrib.platformer.display |
| Class | public class ParallaxBackground |
| Inheritance | ParallaxBackground Layer flash.display.Sprite |
| Property | Defined by | ||
|---|---|---|---|
| _layers : Array Our parallax layers.
| ParallaxBackground | ||
![]() | _snapToPixel : Boolean = true Set to true and all coordinates will be floored.
| Layer | |
| Method | Defined by | ||
|---|---|---|---|
|
addChildToLayer(disp:DisplayObject, index:int):void
| ParallaxBackground | ||
|
addNewLayer(index:int, scaleX:int = 1, scaleY:int = 1, offX:int = 0, offY:int = 0):void
| ParallaxBackground | ||
![]() |
shutdown():void
| Layer | |
|
update(nX:Number, nY:Number, scale:Number = 1):void
| ParallaxBackground | ||
| Constant | Defined by | ||
|---|---|---|---|
| USE_BITMAP : Boolean = true [static]
| ParallaxBackground | ||
| _layers | property |
protected var _layers:ArrayOur parallax layers.
| addChildToLayer | () | method |
public function addChildToLayer(disp:DisplayObject, index:int):voidParameters
disp:DisplayObject |
|
index:int |
| addNewLayer | () | method |
public function addNewLayer(index:int, scaleX:int = 1, scaleY:int = 1, offX:int = 0, offY:int = 0):voidParameters
index:int |
|
scaleX:int (default = 1) |
|
scaleY:int (default = 1) |
|
offX:int (default = 0) |
|
offY:int (default = 0) |
| update | () | method |
public override function update(nX:Number, nY:Number, scale:Number = 1):voidParameters
nX:Number |
|
nY:Number |
|
scale:Number (default = 1) |
| USE_BITMAP | constant |
public static const USE_BITMAP:Boolean = true