Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Student and Teacher Editions
More products
Solutions
Creative tools for business
Digital marketing
Digital media
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Buy
Home use for personal and home office
Education for students, educators, and staff
Business for small and medium businesses
Licensing programs for businesses, schools, and government
Special offers
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
My products and services
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out My orders My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / Flash Developer Center / Graphic Effects Learning Guide /

Graphic Effects Learning Guide for Flash: Inverse kinematics

by Adobe

Adobe Flash Professional

Content

  • Working with the Bone tool
  • Applying physics effects
  • Manipulating armatures with ActionScript
  • Where to go from here

Modified

8 August 2011

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
animation Flash Professional graphic effects inverse kinematics

Requirements

Prerequisite knowledge

This guide assumes you are familiar with the Flash Professional workspace and have a basic knowledge of working with FLA files.

User level

Beginning

Required products

  • Flash Professional (Download trial)

Sample files

  • graphic-effects-lg_pt11.zip

The Bone tool in Adobe Flash Professional CS5 enables you to create armatures using inverse kinematics (IK), a method for creating graphics and animations where an object or groups of objects are articulated in relation to one another using bones. Bones connect parts of a drawing object or a collection of symbol instances in an armature structure that can be easily manipulated.

An armature creates coordinated movements within a chain of connected parts. The parts within the armature are defined as bones connected by joints. You can think of it like bones and joints in a skeleton allowing a person to move in a coordinated way. Affecting a joint causes connected joints to react in unison. You can adjust the attributes of the joints by constraining their movement and rotation—as well as their springiness.

Armatures can be constructed and posed in various movements. A pose is a keyframe on a pose layer defining the layout of the armature at that frame. You can create a single pose or combine poses to create animations. You can adjust the pose(s) using the Flash Timeline and the Bone tool or ActionScript at runtime.

Working with the Bone tool

The Bone Tool (M) can be used to create an armature in a drawing object or a collection of symbol instances. When applied to a drawing object, the armature creates sections of bones within the shape, allowing you to create more intricate transformations and shape tween animations. When applied to a collection of symbol instances, the armature makes it easy to create poses and pose generated animations (see Figure 1).

Figure 1. Wireframe character with an armature connected to the arm.
Figure 1. Wireframe character with an armature connected to the arm.

To create a simple armature:

  1. Create a new ActionScript 3 FLA file and name it ik.fla.
  2. Draw a shape on Frame 1 and convert it to a symbol (Modify > Convert to Symbol or F8).
  3. Duplicate the shape (Edit > Duplicate) two times and spread the instances out on the Stage about 50 pixels apart.
  4. Click the Bone tool in the Tools panel. Select the instance farthest to the left and drag the selection to the next instance to the right. Notice the bone-selection indicator that connects the two instances. The first object that you select is the root joint, from which all other joints in the armature stem. Connect all the instances with the Bone tool.
  5. Choose the Selection Tool (V) and click the instance farthest to the right, and then drag it around the screen. Notice how you can use the armature to position the collection of graphics at author-time.
  6. Click each joint in the armature and experiment with the constrain settings in the Properties panel. Drag the instances on the Stage with the Selection tool to see the difference in movement when joints are constrained.
  7. Select the keyframe in the Timeline containing the armature to show its frame properties in the Properties panel. Change the Type field from Authortime to Runtime under the Options section.
  8. Export the SWF file (Control > Test Movie) to see the armature animation at runtime. Drag the shapes around to see the effect.
  9. Save the file.

You can work with armatures with either the Authortime or Runtime setting. In Authortime mode, you can create tweened animations by creating pose frames on the armature layer.

For a detailed overview of animating with pose layers, read Character animation with the Bone tool in Flash by Chris Georgenes. Read the Bone tool section of the Flash glossary for more information, too.

Applying physics effects

Along with constraining the movement and rotation of the joints in an armature, you can apply two types of physics effects to your animation: easing and spring. Easing affects the speed of a pose animation by speeding up or slowing down over the course of a movement. For example, a character's upward leg swinging would naturally slow down as it reaches the top of the swing.

Control over the spring in a pose animation is new to Flash Professional CS5. Spring adds the element of springiness to movements. This effect can be used to create literal spring movements or more subtle effects, like impact on the armature.

For more information on working with the new spring physics engine, see Exploring the Spring tool in Flash Professional CS5 by Chris Georgenes.

Manipulating armatures with ActionScript

Armatures must be created at author-time in Flash Professional. Once an armature exists, it can be manipulated on the Timeline or at runtime using ActionScript. If you'd like to dynamically control armatures at runtime, start by creating the armatures in your FLA file and then manipulate them using ActionScript.

For more information on using ActionScript with inverse kinematics, see the Working with inverse kinematics section of the ActionScript 3 Developer's Guide. Also refer to the fl.ik package in the ActionScript 3 Reference for the Flash Platform.

Where to go from here

This section of the Graphics Effects Learning Guide provides an overview of working with inverse kinematics in Flash Professional. If you'd like more information about the basics of using IK in Flash, see the Inverse kinematics section of the Flash Professional online help.

Also check out the following demos on Adobe TV for working with inverse kinematics:

  • Using inverse kinematics (7:30)
  • Flash Downunder: Inverse kinematics (9:05)
  • Animating bones (2:41)
  • Using spring properties with IK bones (7:50)

Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License+Adobe Commercial Rights

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

More Like This

  • Graphic Effects Learning Guide for Flash: Color
  • Graphic Effects Learning Guide for Flash: Overview
  • Graphic Effects Learning Guide for Flash: Transformations
  • Graphic Effects Learning Guide for Flash: Bitmaps
  • Graphic Effects Learning Guide for Flash: Blend modes
  • Graphic Effects Learning Guide for Flash: Tiles and patterns
  • Graphic Effects Learning Guide for Flash: Masks
  • Graphic Effects Learning Guide for Flash: Filters
  • Graphic Effects Learning Guide for Flash: Text
  • Graphic Effects Learning Guide for Flash: Vectors

Products

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile Apps
  • Photoshop
  • Touch Apps
  • Student and Teacher Editions

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • For personal and home office
  • For students, educators, and staff
  • For small and medium businesses
  • For businesses, schools, and government
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy Policy and Cookies (Updated)

Ad Choices

Reviewed by TRUSTe: site privacy statement