| 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 = 0current frame
| maxTime | property |
public var maxTime:Numbermaximum time in milliseconds (effectively NUM_FRAMES TICK).
| NUM_FRAMES | property |
public static var NUM_FRAMES:uint = 100total number of frames
| TICK | property |
public static var TICK:Number = 50frame duration in milliseconds
| time | property |
public var time:Number = 0current time in milliseconds.
| AnimationEngine | () | constructor |
public function AnimationEngine()constructor.
| addController | () | method |
public static function addController(object:DisplayObject3D, controller:AbstractController):AbstractControllerAdds 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):ArrayGets all controllers for the specified object.
Parametersobject:DisplayObject3D |
Array |
See also
| getInstance | () | method |
| millisToFrame | () | method |
public static function millisToFrame(millis:Number):uintConverts milliseconds to frames.
Parametersmillis:Number — milliseconds.
|
uint — frame number
|
| secondsToFrame | () | method |
public static function secondsToFrame(seconds:Number):uintConverts seconds to frames.
Parametersseconds:Number — seconds
|
uint — frame number
|
| setControllers | () | method |
public static function setControllers(object:DisplayObject3D, controllers:Array, overwrite:Boolean = false):voidSets 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():voidtick.