| Package | com.whirled.contrib.platformer.display |
| Class | public class ParallaxBitmap |
| Inheritance | ParallaxBitmap Layer flash.display.Sprite |
| Property | Defined by | ||
|---|---|---|---|
| _bd : BitmapData | ParallaxBitmap | ||
| _curX : int | ParallaxBitmap | ||
| _curY : int | ParallaxBitmap | ||
| _pt : Point | ParallaxBitmap | ||
| _rect : Rectangle | ParallaxBitmap | ||
| _scaleX : int | ParallaxBitmap | ||
| _scaleY : int | ParallaxBitmap | ||
![]() | _snapToPixel : Boolean = true Set to true and all coordinates will be floored.
| Layer | |
| _source : BitmapData | ParallaxBitmap | ||
| Method | Defined by | ||
|---|---|---|---|
|
ParallaxBitmap(sX:int = 1, sY:int = 1, oX:int = 0, oY:int = 0)
| ParallaxBitmap | ||
|
setDisp(disp:DisplayObject):void
| ParallaxBitmap | ||
![]() |
shutdown():void
| Layer | |
|
update(nX:Number, nY:Number, scale:Number = 1):void
| ParallaxBitmap | ||
| Method | Defined by | ||
|---|---|---|---|
|
onComplete(event:Event):void
| ParallaxBitmap | ||
| _bd | property |
protected var _bd:BitmapData
| _curX | property |
protected var _curX:int
| _curY | property |
protected var _curY:int
| _pt | property |
protected var _pt:Point
| _rect | property |
protected var _rect:Rectangle
| _scaleX | property |
protected var _scaleX:int
| _scaleY | property |
protected var _scaleY:int
| _source | property |
protected var _source:BitmapData
| ParallaxBitmap | () | constructor |
public function ParallaxBitmap(sX:int = 1, sY:int = 1, oX:int = 0, oY:int = 0)Parameters
sX:int (default = 1) |
|
sY:int (default = 1) |
|
oX:int (default = 0) |
|
oY:int (default = 0) |
| onComplete | () | method |
protected function onComplete(event:Event):voidParameters
event:Event |
| setDisp | () | method |
public function setDisp(disp:DisplayObject):voidParameters
disp:DisplayObject |
| update | () | method |
public override function update(nX:Number, nY:Number, scale:Number = 1):voidParameters
nX:Number |
|
nY:Number |
|
scale:Number (default = 1) |