Packageorg.flixel.data
Classpublic class FlxAnim

Just a helper structure for the FlxSprite animation system



Public Properties
 PropertyDefined by
  delay : Number
Seconds between frames (basically the framerate)
FlxAnim
  frames : Array
A list of frames stored as uint objects
FlxAnim
  looped : Boolean
Whether or not the animation is looped
FlxAnim
  name : String
String name of the animation (e.g.
FlxAnim
Public Methods
 MethodDefined by
  
FlxAnim(Name:String, Frames:Array, FrameRate:Number = 0, Looped:Boolean = true)
Constructor
FlxAnim
Property detail
delayproperty
public var delay:Number

Seconds between frames (basically the framerate)

framesproperty 
public var frames:Array

A list of frames stored as uint objects

loopedproperty 
public var looped:Boolean

Whether or not the animation is looped

nameproperty 
public var name:String

String name of the animation (e.g. "walk")

Constructor detail
FlxAnim()constructor
public function FlxAnim(Name:String, Frames:Array, FrameRate:Number = 0, Looped:Boolean = true)

Constructor

Parameters
Name:String — What this animation should be called (e.g. "run")
 
Frames:Array — An array of numbers indicating what frames to play in what order (e.g. 1, 2, 3)
 
FrameRate:Number (default = 0) — The speed in frames per second that the animation should play at (e.g. 40)
 
Looped:Boolean (default = true) — Whether or not the animation is looped or just plays once