Packageaway3d.animators.data
Classpublic class Skeleton
InheritanceSkeleton Inheritance NamedAssetBase Inheritance flash.events.EventDispatcher
Implements IAsset

A Skeleton object is a hierarchical grouping of joint objects that can be used for skeletal animation.

See also

away3d.animators.data.SkeletonJoint


Public Properties
 PropertyDefined By
 InheritedassetFullPath : Array
[read-only]
NamedAssetBase
 InheritedassetNamespace : String
[read-only]
NamedAssetBase
  assetType : String
[read-only]
Skeleton
  joints : Vector.<SkeletonJoint>
A flat list of joint objects that comprise the skeleton.
Skeleton
 Inheritedname : String
NamedAssetBase
  numJoints : uint
[read-only] The total number of joints in the skeleton.
Skeleton
 InheritedoriginalName : String
[read-only] The original name used for this asset in the resource (e.g.
NamedAssetBase
Public Methods
 MethodDefined By
  
Creates a new Skeleton object
Skeleton
 Inherited
assetPathEquals(name:String, ns:String):Boolean
NamedAssetBase
  
dispose():void
Cleans up resources used by this asset.
Skeleton
  
jointFromName(jointName:String):SkeletonJoint
Returns the joint object in the skeleton with the given name, otherwise returns a null object.
Skeleton
  
jointIndexFromName(jointName:String):int
Returns the joint index, given the joint name.
Skeleton
 Inherited
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void
NamedAssetBase
Public Constants
 ConstantDefined By
 InheritedDEFAULT_NAMESPACE : String = default
[static]
NamedAssetBase
Property Detail
assetTypeproperty
assetType:String  [read-only]


Implementation
    public function get assetType():String
jointsproperty 
public var joints:Vector.<SkeletonJoint>

A flat list of joint objects that comprise the skeleton. Every joint except for the root has a parentIndex property that is an index into this list. A child joint should always have a higher index than its parent.

numJointsproperty 
numJoints:uint  [read-only]

The total number of joints in the skeleton.


Implementation
    public function get numJoints():uint
Constructor Detail
Skeleton()Constructor
public function Skeleton()

Creates a new Skeleton object

Method Detail
dispose()method
public function dispose():void

Cleans up resources used by this asset.

jointFromName()method 
public function jointFromName(jointName:String):SkeletonJoint

Returns the joint object in the skeleton with the given name, otherwise returns a null object.

Parameters

jointName:String — The name of the joint object to be found.

Returns
SkeletonJoint — The joint object with the given name.

See also

jointIndexFromName()method 
public function jointIndexFromName(jointName:String):int

Returns the joint index, given the joint name. -1 is returned if the joint name is not found.

Parameters

jointName:String — The name of the joint object to be found.

Returns
int — The index of the joint object in the joints vector.

See also