Method | Defined By | ||
---|---|---|---|
Layer(nPosX:Number = 0, nPosY:Number = 0, sName:String)
Creates a layer
| Layer | ||
_Dispose():void
Disposes all layer info, including bitmap data. | Layer | ||
CopyIntoBitmap(bmd:BitmapData, rect:Rectangle, nX:Number, nY:Number):void
Copies pixel data into the bitmap layer. | Layer | ||
CreateBitmap():void
Creates a bitmap for the layer. | Layer | ||
EndRenderBitmap():void
Finishes all drawing to the bitmap layer. | Layer | ||
Fill(uiColor:uint = 0xFFFFFF, nAlpha:Number = 1, nFillWidth:Number, nFillHeight:Number):void
Fills the layer with a background color. | Layer | ||
RemoveAll():void
Removes all objects in the layer. | Layer | ||
Reset():void
Resets the layer to its original position and scale. | Layer | ||
StartRenderBitmap():void
Clears all of the bitmap's canvas. | Layer |
Layer | () | Constructor |
public function Layer(nPosX:Number = 0, nPosY:Number = 0, sName:String)
Creates a layer
ParametersnPosX:Number (default = 0 ) — The spawn x position
| |
nPosY:Number (default = 0 ) — The spawn y position
| |
sName:String — The name of the layer
|
_Dispose | () | method |
public function _Dispose():void
Disposes all layer info, including bitmap data.
CopyIntoBitmap | () | method |
public function CopyIntoBitmap(bmd:BitmapData, rect:Rectangle, nX:Number, nY:Number):void
Copies pixel data into the bitmap layer.
Parameters
bmd:BitmapData — Bitmap data to copy
| |
rect:Rectangle — Rectangle of the bitmap to copy
| |
nX:Number — X position of the copy
| |
nY:Number — Y position of the copy
|
CreateBitmap | () | method |
public function CreateBitmap():void
Creates a bitmap for the layer.
EndRenderBitmap | () | method |
public function EndRenderBitmap():void
Finishes all drawing to the bitmap layer. This should occur after each draw.
Fill | () | method |
public function Fill(uiColor:uint = 0xFFFFFF, nAlpha:Number = 1, nFillWidth:Number, nFillHeight:Number):void
Fills the layer with a background color.
Parameters
uiColor:uint (default = 0xFFFFFF ) — The color
| |
nAlpha:Number (default = 1 ) — The alpha of the background color
| |
nFillWidth:Number (default = NaN ) — The fill width (defaults to screen width)
| |
nFillHeight:Number (default = NaN ) — The fill height (defaults to screen height)
|
RemoveAll | () | method |
public function RemoveAll():void
Removes all objects in the layer.
Reset | () | method |
public function Reset():void
Resets the layer to its original position and scale.
StartRenderBitmap | () | method |
public function StartRenderBitmap():void
Clears all of the bitmap's canvas. This should occur before each draw.