Packageaway3d.animators
Classpublic class AnimationStateBase
InheritanceAnimationStateBase Inheritance NamedAssetBase Inheritance flash.events.EventDispatcher
Implements IAsset
Subclasses SkeletonAnimationState, UVAnimationState, VertexAnimationState

Provides an abstract base class for state classes that hold animation node data for specific animation states.

See also

away3d.animators.AnimatorBase


Public Properties
 PropertyDefined By
 InheritedassetFullPath : Array
[read-only]
NamedAssetBase
 InheritedassetNamespace : String
[read-only]
NamedAssetBase
  assetType : String
[read-only]
AnimationStateBase
  looping : Boolean
Determines whether the contents of the animation state have looping characteristics enabled.
AnimationStateBase
 Inheritedname : String
NamedAssetBase
 InheritedoriginalName : String
[read-only] The original name used for this asset in the resource (e.g.
NamedAssetBase
  rootNode : IAnimationNode
[read-only] Returns the root animation node used by the state for determining the output pose of the animation node data.
AnimationStateBase
  stateName : String
[read-only] Returns the name of the state used for retrieval from inside its parent animation set object.
AnimationStateBase
Public Methods
 MethodDefined By
  
Creates a new AnimationSetBase object.
AnimationStateBase
 Inherited
assetPathEquals(name:String, ns:String):Boolean
NamedAssetBase
  
dispose():void
Cleans up resources used by this asset.
AnimationStateBase
  
reset(time:int):void
Resets the configuration of the state to its default state.
AnimationStateBase
 Inherited
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void
NamedAssetBase
Events
 Event Summary Defined By
  Dispatched when a non-looping clip node inside an animation state reaches the end of its timeline.AnimationStateBase
Public Constants
 ConstantDefined By
 InheritedDEFAULT_NAMESPACE : String = default
[static]
NamedAssetBase
Property Detail
assetTypeproperty
assetType:String  [read-only]


Implementation
    public function get assetType():String
loopingproperty 
looping:Boolean

Determines whether the contents of the animation state have looping characteristics enabled.


Implementation
    public function get looping():Boolean
    public function set looping(value:Boolean):void
rootNodeproperty 
rootNode:IAnimationNode  [read-only]

Returns the root animation node used by the state for determining the output pose of the animation node data.


Implementation
    public function get rootNode():IAnimationNode
stateNameproperty 
stateName:String  [read-only]

Returns the name of the state used for retrieval from inside its parent animation set object.


Implementation
    public function get stateName():String

See also

Constructor Detail
AnimationStateBase()Constructor
public function AnimationStateBase(rootNode:IAnimationNode)

Creates a new AnimationSetBase object.

Parameters
rootNode:IAnimationNode — The root animation node used by the state for determining the output pose of the animation node data.
Method Detail
dispose()method
public function dispose():void

Cleans up resources used by this asset.

reset()method 
public function reset(time:int):void

Resets the configuration of the state to its default state.

Parameters

time:int — The absolute time (in milliseconds) of the animator's playhead.

Event Detail
playbackComplete Event
Event Object Type: away3d.events.AnimationStateEvent
AnimationStateEvent.type property = away3d.events.AnimatorEvent

Dispatched when a non-looping clip node inside an animation state reaches the end of its timeline.