Packagestencyl.api.engine.bg
Classpublic class Area
InheritanceArea Inheritance Object
Subclasses ParallaxArea, ScrollingArea



Public Properties
 PropertyDefined By
  viewport : MyViewport
Area
Protected Properties
 PropertyDefined By
  bg : ImageBackground
Area
  height : int
Area
  width : int
Area
Public Methods
 MethodDefined By
  
Area(bg:ImageBackground, repeats:Boolean, width:int = 0, height:int = 0)
Area
  
Area
  
getHeight():Number
Area
  
getWidth():Number
Area
  
render():void
Area
  
Area
  
update():void
Area
Protected Methods
 MethodDefined By
  
setDimension(width:int, height:int):void
Area
Property Detail
bgproperty
protected var bg:ImageBackground

heightproperty 
protected var height:int

viewportproperty 
public var viewport:MyViewport

widthproperty 
protected var width:int

Constructor Detail
Area()Constructor
public function Area(bg:ImageBackground, repeats:Boolean, width:int = 0, height:int = 0)



Parameters
bg:ImageBackground
 
repeats:Boolean
 
width:int (default = 0)
 
height:int (default = 0)
Method Detail
getBackgroundImage()method
public function getBackgroundImage():ImageBackground

Returns
ImageBackground
getHeight()method 
public function getHeight():Number

Returns
Number
getWidth()method 
public function getWidth():Number

Returns
Number
render()method 
public function render():void

setBackgroundImage()method 
public function setBackgroundImage(bg:ImageBackground):void

Parameters

bg:ImageBackground

setDimension()method 
protected function setDimension(width:int, height:int):void

Parameters

width:int
 
height:int

update()method 
public function update():void