Package | stencyl.api.engine.bg |
Class | public class ImageBackground |
Inheritance | ImageBackground Resource Object |
Implements | Background |
Subclasses | ScrollingBackground |
Property | Defined By | ||
---|---|---|---|
currFrame : int | ImageBackground | ||
currTime : Number | ImageBackground | ||
durations : Array | ImageBackground | ||
frames : Array | ImageBackground | ||
ID : uint | Resource | ||
img : BitmapData | ImageBackground | ||
name : String | Resource | ||
repeats : Boolean | ImageBackground |
Method | Defined By | ||
---|---|---|---|
ImageBackground(ID:uint, name:String, frameData:Array, durations:Array, repeats:Boolean) | ImageBackground | ||
draw(cameraX:Number, cameraY:Number, screenWidth:Number, screenHeight:Number):void | ImageBackground | ||
toString():String | Resource | ||
update():void | ImageBackground |
currFrame | property |
public var currFrame:int
currTime | property |
public var currTime:Number
durations | property |
public var durations:Array
frames | property |
public var frames:Array
img | property |
public var img:BitmapData
repeats | property |
public var repeats:Boolean
ImageBackground | () | Constructor |
public function ImageBackground(ID:uint, name:String, frameData:Array, durations:Array, repeats:Boolean)
ID:uint | |
name:String | |
frameData:Array | |
durations:Array | |
repeats:Boolean |
draw | () | method |
public function draw(cameraX:Number, cameraY:Number, screenWidth:Number, screenHeight:Number):void
Parameters
cameraX:Number | |
cameraY:Number | |
screenWidth:Number | |
screenHeight:Number |
update | () | method |
public function update():void