Packagestencyl.api.engine.bg
Classpublic class ImageBackground
InheritanceImageBackground Inheritance Resource Inheritance Object
Implements Background
Subclasses ScrollingBackground



Public Properties
 PropertyDefined By
  currFrame : int
ImageBackground
  currTime : Number
ImageBackground
  durations : Array
ImageBackground
  frames : Array
ImageBackground
 InheritedID : uint
Resource
  img : BitmapData
ImageBackground
 Inheritedname : String
Resource
  repeats : Boolean
ImageBackground
Public Methods
 MethodDefined By
  
ImageBackground(ID:uint, name:String, frameData:Array, durations:Array, repeats:Boolean)
ImageBackground
  
draw(cameraX:Number, cameraY:Number, screenWidth:Number, screenHeight:Number):void
ImageBackground
 Inherited
toString():String
Resource
  
update():void
ImageBackground
Property Detail
currFrameproperty
public var currFrame:int

currTimeproperty 
public var currTime:Number

durationsproperty 
public var durations:Array

framesproperty 
public var frames:Array

imgproperty 
public var img:BitmapData

repeatsproperty 
public var repeats:Boolean

Constructor Detail
ImageBackground()Constructor
public function ImageBackground(ID:uint, name:String, frameData:Array, durations:Array, repeats:Boolean)



Parameters
ID:uint
 
name:String
 
frameData:Array
 
durations:Array
 
repeats:Boolean
Method Detail
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