Creates a new VertexAnimator
object.
The animation data set containing the vertex animations used by the animator.
Returns the internal absolute time of the animator, calculated by the current time and the playback speed.
Returns the current active animation node.
Returns the current active animation node.
Returns the current active animation state.
adapter is used to provide MovieClip to scripts taken from different platforms setter typically managed by factory. getter defaults to AwayJS class
Returns the animation data set in use by the animator.
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.
A unique id for the asset, used to identify assets in an associative array
The original name used for this asset in the resource (e.g. file) in which
it was found. This may not be the same as name
, which may
have changed due to of a name conflict.
The amount by which passed time should be scaled. Used to slow down or speed up animations. Defaults to 1.
Gets and sets the internal time clock of the animator.
Enables translation of the animated graphics from data returned per frame via the positionDelta property of the active animation node. Defaults to true.
Add an event listener
Used by the graphics object to which the animator is applied, registers the owner for internal use.
for internal use.
Dispatch an event
check if an object has an event listener assigned to it
Sets the animation phase of the current active state's animation clip(s).
The phase value to use. 0 represents the beginning of an animation clip, 1 represents the end.
Plays a sequence with a given name. If the sequence is not found, it may not be loaded yet, and it will retry every frame.
Remove an event listener
Used by the graphics object from which the animator is removed, unregisters the owner for internal use.
Resumes the automatic playback clock controling the active state of the animator.
Pauses the automatic playback clock of the animator, in case manual updates are required via the
time
property or update()
method.
Verifies if the animation will be used on cpu. Needs to be true for all passes for a material to be able to use it on gpu. Needs to be called if gpu code is potentially required.
Provides a way to manually update the active state of the animator when automatic updates are disabled.
Generated using TypeDoc
Provides an interface for assigning vertex-based animation data sets to sprite-based entity objects and controlling the various available states of animation through an interative playhead that can be automatically updated or manually triggered.