Accessibility
Jen deHaan

Jen deHaan

Adobe
flashthusiast.com

John Mayhew

John Mayhew

Adobe

Created:
4 May 2009
User Level:
Beginner
Products:
Flash

Animation Learning Guide for Flash: Motion presets

Adobe Flash CS4 Professional includes prebuilt motion presets that enable you to add animations with a minimal number of steps. You can also create a custom preset from an animation that you make and then reuse it throughout your documents. You can use motion presets as-is in your document, or use them as a learning tool to see how animations are created or modified in the Motion Editor, or just as a jumping off point for your own animations, since you can make any changes you want after applying a preset.

Requirements

To make this most of this learning guide, you need to install the following software and files:

Flash CS4 Professional

Sample files:

Prerequisite knowledge

A basic knowledge of the Flash workspace.

Using motion presets

You can apply motion presets to tweenable instances (symbol instances and text), or non-tweenable instances, which will be wrapped in a movie clip. The animation in a Motion Preset can include a motion path, animated properties (2D or 3D), and eases; all of the properties and eases are saved in the preset, including the transform center (see Figure 58). The tweened object is not saved in the preset. Motion presets make it easy to animate a selection: you can simply make the selection, choose a Motion Preset, and click Apply. Motion presets let you add animation to a FLA file with pretty much no knowledge of animation, or very little effort. Everyone wins.

AlertThis content requires Flash

Download the free Flash Player now!

Get Adobe Flash Player

Figure 58. This animation was created using the "spiral-3D" motion preset. No code or knowledge of tweening were required to create this animation. If you can handle one click, you too can make this tween.

To apply a motion preset to an instance:

  1. Open motion-tween.fla from this learning guide's source files, and then select the movie clip on the Stage.
  2. Open the Motion Presets panel (Window > Motion Presets).
  3. Select the bounce-in-3D preset, which is the first preset in the Default Presets category, and then click Apply (see Figure 59).

Apply a default Motion Preset to a movie
clip.

Figure 59. Apply a default Motion Preset to a movie clip.

The preset is applied using the current position of the selected instance as the beginning of the tween. At this point, with the instance still selected, you can open the Motion Editor to view the animation that has been applied.

Tip: Applying presets and viewing the results in the Motion Editor can be helpful when learning the basics of how to tween and use the Motion Editor.

You will see that x, y, and z position has been tweened (which means the animation has 3D), and an ease is applied to the Y property. If you scroll down, you can also see a curve in the Scale properties, and if you keep scrolling you'll see the Bounce In ease that has been used to create the bounce motion.

To apply a motion preset using an instance's position as the end of the tween:

  1. Create a movie clip, and drag an instance to the Stage.
  2. Select the movie clip on the Stage, and open the Motion Presets panel.
  3. Select bounce-in-3D in the list of Default presets, hold the Shift key, and click Apply.
  4. The bounce animation ends at the current location of your movie clip. Remember, when you click Apply without holding the Shift key, the animation starts where the instance is on the Stage instead of ending there.

Tip: Instead of holding Shift when you click Apply, you can select the movie clip and then choose End at current position from the Motion Presets panel menu.

To create a motion preset from a motion tween:

  1. Create a motion tween in a FLA file.
  2. Right/Control-click the tween span in the Timeline, or right/Control-click the tweened instance on the Stage.
  3. Choose Save As Motion Preset from the context menu.
  4. Type a name for your preset into the dialog box and click OK (see Figure 60).

Name the motion preset and click OK.

Figure 60. Name the motion preset and click OK.

After you create the motion preset, you can use it on any instance in any Flash document. The motion preset is saved on your hard disk in a file that you can share with other people. To find out how, keep reading.

To share or load custom motion presets:

  1. Create a custom motion preset (follow the previous example if necessary), noting the name that you give your preset.
  2. Select the preset you created in the Motion Presets panel, and then choose Export from the panel menu. Save the file somewhere easy to find on your hard drive.
  3. Import this file to the Motion Presets panel on another computer with Flash using Import from the Motion Presets panel menu.
  4. The preset will immediately be available in the Motion Editor, in the Custom Presets category. There is no need to restart Flash.

Several other options are available in the Motion Presets panel menu and buttons as follows:

  • Rename: Opens a dialog box that enables you to rename the currently selected custom preset.
  • New folder: Creates a new folder for motion presets in the Custom Presets category. Available both in the panel menu and button located at the bottom of the panel.
  • Remove: Removes the currently selected custom preset or folder. Available both in the panel menu and button located at the bottom of the panel.
  • Save: Saves the currently selected tween span as a motion preset. Available both in the panel menu and button located at the bottom of the panel.
  • Apply at current position: Applies the motion preset to the selected object. The animation starts at the current position of the selection.
  • Apply at end position: Applies the motion preset to the selected object. The animation ends at the current position of the selection.

Where to go from here

Read other sections of the Animation Learning Guide for Flash.

About the authors

Jen deHaan was raised by wolves in the deep woods of the Canadian north. Later in life, Jen worked with Flash as a deseloper, then wrote about Flash for five versions, and then worked on stuff that didn't include much Flash. She came to her senses in 2007 by rejoining the fabled Flash team at Adobe as a QE, focusing on the good stuff—Motion (on timelines). Jen enjoys long walks in the rain pondering how many times she can use the word Flash in a bio, and admits that after numerous years in California she is no longer addicted to Tim Horton's coffee.

John Mayhew is a hopeless software developer, and has been for a very long time, but he still loves it. John likes being able to launch an app, demo a feature, and show people exactly what he creates for a living. Along the way he has worked for several small companies and consulted for many years. Among the more notable companies John worked for are Micrografx (ABC FlowCharter and their Graphics Suite offering) and Macromedia (mobile authoring tools), which eventually led him to the Flash authoring team. He has focused for the last few years on creating a simple, yet more powerful animation system in the Flash authoring tool. Achieving both of those goals has proven to be quite a challenge. You can see if John and his colleagues achieved those lofty ambitions in Flash CS4 Professional.