| Package | stencyl.api.engine.bg |
| Class | public class Area |
| Inheritance | Area Object |
| Subclasses | ParallaxArea, ScrollingArea |
| Property | Defined By | ||
|---|---|---|---|
| viewport : MyViewport | Area | ||
| Property | Defined By | ||
|---|---|---|---|
| bg : ImageBackground | Area | ||
| height : int | Area | ||
| width : int | Area | ||
| Method | Defined By | ||
|---|---|---|---|
Area(bg:ImageBackground, repeats:Boolean, width:int = 0, height:int = 0) | Area | ||
| Area | |||
getHeight():Number | Area | ||
getWidth():Number | Area | ||
render():void | Area | ||
setBackgroundImage(bg:ImageBackground):void | Area | ||
update():void | Area | ||
| Method | Defined By | ||
|---|---|---|---|
setDimension(width:int, height:int):void | Area | ||
| bg | property |
protected var bg:ImageBackground| height | property |
protected var height:int| viewport | property |
public var viewport:MyViewport| width | property |
protected var width:int| Area | () | Constructor |
public function Area(bg:ImageBackground, repeats:Boolean, width:int = 0, height:int = 0)bg:ImageBackground | |
repeats:Boolean | |
width:int (default = 0) | |
height:int (default = 0) |
| getBackgroundImage | () | method |
| getHeight | () | method |
public function getHeight():NumberReturnsNumber |
| getWidth | () | method |
public function getWidth():NumberReturnsNumber |
| render | () | method |
public function render():void| setBackgroundImage | () | method |
| setDimension | () | method |
protected function setDimension(width:int, height:int):voidParameters
width:int | |
height:int |
| update | () | method |
public function update():void