Packagestencyl.api.engine.bg
Classpublic class ParallaxArea
InheritanceParallaxArea Inheritance Area Inheritance Object



Public Properties
 PropertyDefined By
  backLayers : Array
ParallaxArea
  foreLayers : Array
ParallaxArea
 Inheritedviewport : MyViewport
Area
Protected Properties
 PropertyDefined By
 Inheritedbg : ImageBackground
Area
 Inheritedheight : int
Area
 Inheritedwidth : int
Area
Public Methods
 MethodDefined By
  
ParallaxArea(sceneWidth:int, sceneHeight:int)
ParallaxArea
  
ParallaxArea
  
ParallaxArea
  
ParallaxArea
  
ParallaxArea
 Inherited
Area
 Inherited
getHeight():Number
Area
 Inherited
getWidth():Number
Area
 Inherited
render():void
Area
 Inherited
Area
  
update():void
[override]
ParallaxArea
Protected Methods
 MethodDefined By
 Inherited
setDimension(width:int, height:int):void
Area
Property Detail
backLayersproperty
public var backLayers:Array

foreLayersproperty 
public var foreLayers:Array

Constructor Detail
ParallaxArea()Constructor
public function ParallaxArea(sceneWidth:int, sceneHeight:int)



Parameters
sceneWidth:int
 
sceneHeight:int
Method Detail
addBackgroundLayer()method
public function addBackgroundLayer(layer:Area):void

Parameters

layer:Area

addForegroundLayer()method 
public function addForegroundLayer(layer:Area):void

Parameters

layer:Area

drawBackgrounds()method 
public function drawBackgrounds():void

drawForegrounds()method 
public function drawForegrounds():void

update()method 
override public function update():void