Packagestencyl.api.engine.bg
Classpublic class ScrollingBackground
InheritanceScrollingBackground Inheritance ImageBackground Inheritance Resource Inheritance Object



Public Properties
 PropertyDefined By
 InheritedcurrFrame : int
ImageBackground
 InheritedcurrTime : Number
ImageBackground
 Inheriteddurations : Array
ImageBackground
 Inheritedframes : Array
ImageBackground
 InheritedID : uint
Resource
 Inheritedimg : BitmapData
ImageBackground
 Inheritedname : String
Resource
 Inheritedrepeats : Boolean
ImageBackground
  xVelocity : Number
ScrollingBackground
  yVelocity : Number
ScrollingBackground
Public Methods
 MethodDefined By
  
ScrollingBackground(ID:uint, name:String, frameData:Array, durations:Array, repeats:Boolean, xVelocity:Number = 0, yVelocity:Number = 0)
ScrollingBackground
 Inherited
draw(cameraX:Number, cameraY:Number, screenWidth:Number, screenHeight:Number):void
ImageBackground
 Inherited
toString():String
Resource
 Inherited
update():void
ImageBackground
Property Detail
xVelocityproperty
public var xVelocity:Number

yVelocityproperty 
public var yVelocity:Number

Constructor Detail
ScrollingBackground()Constructor
public function ScrollingBackground(ID:uint, name:String, frameData:Array, durations:Array, repeats:Boolean, xVelocity:Number = 0, yVelocity:Number = 0)



Parameters
ID:uint
 
name:String
 
frameData:Array
 
durations:Array
 
repeats:Boolean
 
xVelocity:Number (default = 0)
 
yVelocity:Number (default = 0)