BETA ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Hide Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes

Language Reference only
Filters: AIR 32.0 and earlier, Flash Player 32.0 and earlier, Flash Lite 4
None
Hide Filters
fl.ik 

IKArmature  - AS3 Flash

(Beta)
Packagefl.ik
Classpublic class IKArmature
InheritanceIKArmature Inheritance Object

Language Version: ActionScript 3.0
Product Version: Flash CS4
Runtime Versions: Flash Player 10, AIR 1.5

The IKArmature class describes an inverse kinematics (IK) armature. An armature is a collection of segments, called "bones", which are connected to one another at "joints". An armature is often described as a tree-like or chain-like structure. Armatures can take advantage of the spring and damping features of the dynamic physics engine via the springsEnabled property.

Because armatures can be created only in the Flash authoring tool, you should not use the IKArmature class's constructor to create instances of this class. Flash Player creates all instances of the IKArmature class when a SWF file starts running. You can create a reference to an armature by using the getArmatureAt() or the getArmatureByName() methods in the IKManager class.

Note: If an armature is not in the first frame of a scene, use the registerElements() method to initialize the armature for a specific DisplayObject.

More examples

Related API Elements



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  container : DisplayObjectContainer
[read-only] Returns DisplayObjectContainer passed into call to registerElements.
IKArmature
  name : String
[read-only] The name of the armature.
IKArmature
  rootJoint : IKJoint
[read-only] The root joint in the armature.
IKArmature
  springsEnabled : Boolean
Specifies whether springs are enabled for an armature.
IKArmature
Public Methods
 MethodDefined By
  
Returns the specified bone.
IKArmature
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
  
Activates inverse kinematic (IK) movement for a library symbol instance that contains an armature.
IKArmature
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail

container

property
container:DisplayObjectContainer  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Returns DisplayObjectContainer passed into call to registerElements.



Implementation
    public function get container():DisplayObjectContainer

springsEnabled

property 
springsEnabled:Boolean

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10.1, AIR 1.5

Specifies whether springs are enabled for an armature. When this value is true, the armature can take advantage of the new dynamic physics engine, which adds spring and damping to animation. The default value is true.

         myArmature:IKArmature = fl.ik.IKManager.getArmatureAt(0);
         myArmature.springsEnabled = true; // turns springs on
         



Implementation
    public function get springsEnabled():Boolean
    public function set springsEnabled(value:Boolean):void
Method Detail