Property | Defined by | ||
---|---|---|---|
currentFrame : uint = 0 current frame
| AnimationEngine | ||
maxTime : Number maximum time in milliseconds (effectively NUM_FRAMES TICK).
| AnimationEngine | ||
NUM_FRAMES : uint = 100 [static] total number of frames
| AnimationEngine | ||
TICK : Number = 50 [static] frame duration in milliseconds
| AnimationEngine | ||
time : Number = 0 current time in milliseconds.
| AnimationEngine |
Method | Defined by | ||
---|---|---|---|
constructor.
| AnimationEngine | ||
[static]
Adds a controller to the animation engine.
| AnimationEngine | ||
getControllers(object:DisplayObject3D):Array
[static]
Gets all controllers for the specified object.
| AnimationEngine | ||
[static]
getInstance.
| AnimationEngine | ||
millisToFrame(millis:Number):uint
[static]
Converts milliseconds to frames.
| AnimationEngine | ||
secondsToFrame(seconds:Number):uint
[static]
Converts seconds to frames.
| AnimationEngine | ||
setControllers(object:DisplayObject3D, controllers:Array, overwrite:Boolean = false):void
[static]
Sets all controllers for the specified object.
| AnimationEngine | ||
tick():void
tick.
| AnimationEngine |
currentFrame | property |
public var currentFrame:uint = 0
current frame
maxTime | property |
public var maxTime:Number
maximum time in milliseconds (effectively NUM_FRAMES TICK).
NUM_FRAMES | property |
public static var NUM_FRAMES:uint = 100
total number of frames
TICK | property |
public static var TICK:Number = 50
frame duration in milliseconds
time | property |
public var time:Number = 0
current time in milliseconds.
AnimationEngine | () | constructor |
public function AnimationEngine()
constructor.
addController | () | method |
public static function addController(object:DisplayObject3D, controller:AbstractController):AbstractController
Adds a controller to the animation engine.
Parametersobject:DisplayObject3D — the object the controller targets. |
|
controller:AbstractController — the controller. |
AbstractController |
See also
getControllers | () | method |
public static function getControllers(object:DisplayObject3D):Array
Gets all controllers for the specified object.
Parametersobject:DisplayObject3D |
Array |
See also
getInstance | () | method |
millisToFrame | () | method |
public static function millisToFrame(millis:Number):uint
Converts milliseconds to frames.
Parametersmillis:Number — milliseconds.
|
uint — frame number
|
secondsToFrame | () | method |
public static function secondsToFrame(seconds:Number):uint
Converts seconds to frames.
Parametersseconds:Number — seconds
|
uint — frame number
|
setControllers | () | method |
public static function setControllers(object:DisplayObject3D, controllers:Array, overwrite:Boolean = false):void
Sets all controllers for the specified object.
Parametersobject:DisplayObject3D — the object the controller targets. |
|
controllers:Array — the object the controllers target. |
|
overwrite:Boolean (default = false ) — a boolean value indicating whether to overwrite all previous controllers.
|
See also
tick | () | method |
public function tick():void
tick.