Packageverlocity.display
Classpublic final class Layer
InheritanceLayer Inheritance flash.display.Sprite



Public Methods
 MethodDefined 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
  
Creates a bitmap for the layer.
Layer
  
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
  
Clears all of the bitmap's canvas.
Layer
Constructor Detail
Layer()Constructor
public function Layer(nPosX:Number = 0, nPosY:Number = 0, sName:String)

Creates a layer

Parameters
nPosX:Number (default = 0) — The spawn x position
 
nPosY:Number (default = 0) — The spawn y position
 
sName:String — The name of the layer
Method Detail
_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.