Package | away3d.animators |
Class | public class AnimatorBase |
Inheritance | AnimatorBase flash.events.EventDispatcher |
Subclasses | SkeletonAnimator, UVAnimator, VertexAnimator |
AnimationSetBase
.
See also
Property | Defined By | ||
---|---|---|---|
activeState : IAnimationState [read-only]
Returns the current active animation state. | AnimatorBase | ||
animationSet : IAnimationSet [read-only]
Returns the animation data set in use by the animator. | AnimatorBase | ||
autoUpdate : Boolean
Determines whether the animators internal update mechanisms are active. | AnimatorBase | ||
playbackSpeed : Number
The amount by which passed time should be scaled. | AnimatorBase | ||
time : int
Gets and sets the internal time clock of the animator. | AnimatorBase |
Property | Defined By | ||
---|---|---|---|
_absoluteTime : Number = 0 | AnimatorBase | ||
_activeState : IAnimationState | AnimatorBase | ||
_owners : Vector.<Mesh> | AnimatorBase |
Method | Defined By | ||
---|---|---|---|
AnimatorBase(animationSet:IAnimationSet)
Creates a new AnimatorBase object. | AnimatorBase | ||
start():void
Resumes the automatic playback clock controling the active state of the animator. | AnimatorBase | ||
stop():void
Pauses the automatic playback clock of the animator, in case manual updates are required via the
time property or update() method. | AnimatorBase | ||
update(time:int):void
Provides a way to manually update the active state of the animator when automatic
updates are disabled. | AnimatorBase |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when playback of an animation inside the animator object starts. | AnimatorBase | |||
Dispatched when playback of an animation inside the animator object stops. | AnimatorBase |
_absoluteTime | property |
protected var _absoluteTime:Number = 0
_activeState | property |
protected var _activeState:IAnimationState
_owners | property |
protected var _owners:Vector.<Mesh>
activeState | property |
activeState:IAnimationState
[read-only] Returns the current active animation state.
public function get activeState():IAnimationState
animationSet | property |
animationSet:IAnimationSet
[read-only] Returns the animation data set in use by the animator.
public function get animationSet():IAnimationSet
autoUpdate | property |
autoUpdate:Boolean
Determines whether the animators internal update mechanisms are active. Used in cases
where manual updates are required either via the time
property or update()
method.
Defaults to true.
public function get autoUpdate():Boolean
public function set autoUpdate(value:Boolean):void
See also
playbackSpeed | property |
playbackSpeed:Number
The amount by which passed time should be scaled. Used to slow down or speed up animations. Defaults to 1.
public function get playbackSpeed():Number
public function set playbackSpeed(value:Number):void
time | property |
time:int
Gets and sets the internal time clock of the animator.
public function get time():int
public function set time(value:int):void
AnimatorBase | () | Constructor |
public function AnimatorBase(animationSet:IAnimationSet)
Creates a new AnimatorBase
object.
animationSet:IAnimationSet — The animation data set to be used by the animator object.
|
start | () | method |
public function start():void
Resumes the automatic playback clock controling the active state of the animator.
stop | () | method |
public function stop():void
Pauses the automatic playback clock of the animator, in case manual updates are required via the
time
property or update()
method.
See also
update | () | method |
public function update(time:int):void
Provides a way to manually update the active state of the animator when automatic updates are disabled.
Parameters
time:int |
See also
start | Event |
away3d.events.AnimatorEvent
away3d.events.AnimatorEvent
Dispatched when playback of an animation inside the animator object starts.
stop | Event |
away3d.events.AnimatorEvent
away3d.events.AnimatorEvent
Dispatched when playback of an animation inside the animator object stops.