| Package | org.flixel.system |
| Class | public class FlxAnim |
| Inheritance | FlxAnim Object |
| Property | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
FlxAnim(Name:String, Frames:Array, FrameRate:Number = 0, Looped:Boolean = true)
Constructor
| FlxAnim | ||
destroy():void
Clean up memory. | FlxAnim | ||
| delay | property |
public var delay:NumberSeconds between frames (basically the framerate)
| frames | property |
public var frames:Array
A list of frames stored as uint objects
| looped | property |
public var looped:BooleanWhether or not the animation is looped
| name | property |
public var name:StringString name of the animation (e.g. "walk")
| FlxAnim | () | Constructor |
public function FlxAnim(Name:String, Frames:Array, FrameRate:Number = 0, Looped:Boolean = true)Constructor
ParametersName: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
|
| destroy | () | method |
public function destroy():voidClean up memory.