Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Student and Teacher Editions
More products
Solutions
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 /

Automating tasks in Flash Professional CS6

by Dan Carr

Dan Carr
  • Dan Carr Design

Content

  • Creating assets in other Adobe tools
  • Automating graphics production
  • Automating animation
  • Automating ActionScript development
  • Where to go from here

Created

7 May 2012

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
ActionScript animation Creative Suite 5.5 Flash Professional graphic effects workflow

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

Tips: For information on how to automate tasks in Flash Professional CS5, refer to this article.

Adobe Flash Professional CS6 provides a range of features that you can use to speed your graphic and visual effects production workflow.

Automation describes the use of prebuilt and saved functionality to facilitate routine processes and effects. For example, you could automate complex geometric graphics production using the decorative tools in Flash Professional as a shortcut for generating patterns. You could automate animation production by using saved and prebuilt tween effects in the Motion Presets panel. You could use saved and prebuilt commands in the Commands menu to automate common tasks, such as copying animations or configuring symbols.

Along with automation, this article provides an overview of the improved cross-product integration features available in Flash Professional CS6. By combining the workflow and automation features of Adobe Creative Suite 6, you can easily incorporate graphics and assets into your projects.

Creating assets in other Adobe tools

Flash Professional CS5 introduced an XML-based FLA format with improved support for cross-product workflows and better performance when working on large projects. You can save your project in compressed FLA format or uncompressed XFL format. The XFL format saves the project into a folder composed of XML files and graphic assets (JPEG, PNG, MP3, WAV, and so on). The assets can be edited directly by other applications and managed with source-control systems while working in teams.

Adobe InDesign CS5 and Adobe After Effects CS5 also introduced the ability to save projects to XFL format, allowing for new workflows. For example, you could start your project in After Effects, save it in XFL format, and then open the project in Flash Professional to continue building your user interface.

When it comes to creating and editing graphics, you can use the extensive features in Adobe Photoshop CS6, Adobe Illustrator CS6, and Adobe Fireworks CS6 to expand on the drawing tools provided in Flash Professional. Use Photoshop for sophisticated pixel-based image editing and then import your PSD file into Flash while maintaining your Photoshop file options (see Figure 1).

Figure 1. Import Photoshop dialog box in Flash Professional CS6.
Figure 1. Import Photoshop dialog box in Flash Professional CS6.

Use the advanced vector drawing and editing tools in Illustrator to create complex layouts and then import your AI file while maintaining your Illustrator options (see Figure 2).

Figure 2. Import Illustrator dialog box in Flash Professional CS6.
Figure 2. Import Illustrator dialog box in Flash Professional CS6.

Any vector graphics imported into Flash Professional are editable in the Flash workspace. You can launch Photoshop to edit bitmap graphics too; simply right-click the bitmap in the Library and select the option to Edit in Photoshop CS6. Alternatively, select the Edit option and choose Fireworks to launch it and begin making changes to the image.

For more information about working with assets created in Photoshop, Illustrator, Fireworks, and InDesign, see the Using imported artwork section of the Flash Professional online help.

Automating graphics production

You can automate graphics production and effects by using the range of tools and display object properties available in the Flash Professional workspace. For example, you can create complex geometric pattern effects using the Deco and Spray Brush tools. Or create drop shadows and bevel effects with filters or color effects with blend modes. You can specify a range of options in the Properties panel for each tool to achieve effects quickly that would be time-consuming to produce otherwise.

See the following sections of the Graphic Effects Learning Guide for more information:

  • Filters
  • Blend modes

Automating animation

The introduction of object-based motion tweening in Flash CS4 Professional opened the door for a handful of new automation features. Object-based motion tweens are represented in XML at their core, which means that their properties can easily be copied, saved, and reapplied to other objects. You can use your animations as templates whose attributes can be applied to other objects and then fine-tuned.

There are several options to copy motion XML: use the Copy Motion as XML command in the Commands menu or right-click the motion object and choose Save as Motion Preset from a list of animation automation options (see Figure 3).

Figure 3. Context menu for an object connected to a motion tween.
Figure 3. Context menu for an object connected to a motion tween.

Choosing the Copy Motion as XML option allows you to copy the animation's attributes and paste them on to another object using Paste Motion. The Copy Motion as ActionScript 3 option allows you to copy the animation and paste it as an AnimatorFactory object in ActionScript 3. The Save as Motion Preset option allows you to save the animation attributes to the Motion Preset panel for use across projects.

To save a tween as a motion preset:

  1. Create a new ActionScript 3 FLA file and name it motion.fla.
  2. Name the default layer shape. Draw a shape on Frame 1 and convert it to a symbol (Modify > Convert to Symbol).
  3. Right-click the keyframe on Frame 1 of the shape1 layer and choose the Create Motion Tween option. Notice that 24 frames are automatically added to the Timeline.
  4. Change the physical properties of the shape at Frame 20 by moving it on the Stage and distorting its shape with the Free Transform (Q) tool. Notice the motion guide line that connects the two instances on the Stage; you can select the line and drag the handles to bend it into a curve, if desired.
  5. Right-click the keyframe and choose the Save as Motion Preset option.
  6. Enter a name for the preset in the Save Preset As dialog box and click OK. Open the Motion Presets panel and notice that your custom preset is saved in the Custom Presets folder (see Figure 4).
Figure 4. The Motion Presets panel allows you to choose default animation presets or create custom presets.
Figure 4. The Motion Presets panel allows you to choose default animation presets or create custom presets.
  1. To apply a saved preset, add an instance of a movie clip to the Stage on a frame that contains a keyframe. Select the instance on the Stage.
  2. Right-click the desired preset listed in the Motion Presets panel and choose the Apply at current location option.
  3. Export the SWF file (Control > Test Movie) to see the animations play.
  4. Save the file.

For more information on working with motion presets, see the Applying motion presets section of the Flash Professional online help.

Automating ActionScript development

The Actions panel in Flash Professional includes many improvements designed to make it easier to add ActionScript code to projects. Features include context-sensitive help, automatic importing of classes while data typing, and Script Assist mode—which generates the syntax of ActionScript as you use the interface to add statements to your scripts.

In addition to the recent updates to the Actions panel, be sure to check out the automation features in the Code Snippets panel. Flash Professional CS5 introduced the Code Snippets panel as a utility to automate code production. A code snippet is a predefined ActionScript code block that provides a certain type of functionality (see Figure 5).

Figure 5. Categories of code snippets listed in the Code Snippets panel.
Figure 5. Categories of code snippets listed in the Code Snippets panel.

Code snippets can affect simple routines like controlling a timeline and adding event handlers to objects, or more complex routines, like animation and media playback. The general workflow includes selecting an object, naming its instance, and choosing a code snippet to apply to the object.

If you are new to working with ActionScript, the Code Snippets panel offers an easy way to learn the ActionScript syntax and start integrating code into your projects right away. The panel can also be used to save code snippets; if you write a lot of code, use this timesaving feature to save your custom scripts. Code snippets can be combined to create elaborate functionality to speed along development for all levels of projects and developers.

Code snippets for beginning ActionScript 3 programmers and designers by Yuki Shimizu gives a comprehensive overview of working with code snippets.

Flash Professional also offers integration features for Adobe Flash Builder and Adobe Flex. You can create Flash Professional projects in Flash Builder 4 and later, which allows you to roundtrip your code-editing workflow and take advantage of the Flash Builder workspace for code editing. You can also use the new Convert Symbol to Flex Component command in Flash Professional to convert a movie clip symbol into a Flex-ready component.

You can get an overview of the Flash Builder and Flex integration features in my article, Combining animation with ActionScript using Flash Professional CS5 and Flash Builder 4.

Where to go from here

Try experimenting by creating and applying reusable animations in the Motion Presets panel and reusable code in the Code Snippets panel. Check out these resources for additional information on code snippets:

  • Add interactivity with code snippets (Flash Professional online help)
  • Code snippets (Flash Exchange)

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License

More Like This

  • Modeling User Workflows for Rich Internet Applications
  • Creating ActionScript 3.0 components in Flash – Part 8: Keyboard support
  • Animation in Macromedia Flash: Squash and Stretch
  • Controlling the appearance of text elements with the Text Layout Framework
  • Deconstructing the ActionScript 3 Flash video gallery application
  • Creating a simple document in Flash CS4 Professional
  • Examining the Puzzle Game sample application
  • Flash CS4 Missing Manual excerpts: Video, testing and debugging, optimization, and sound
  • Authoring mobile Flash content for multiple screen sizes
  • Augmented reality using a webcam and Flash

Flash User Forum

More
04/23/2012 Auto-Save and Auto-Recovery
04/23/2012 Open hyperlinks in new window/tab/pop-up ?
04/21/2012 PNG transparencies glitched
04/01/2010 Workaround for JSFL shape selection bug?

Flash Cookbooks

More
02/13/2012 Randomize an array
02/11/2012 How to create a Facebook fan page with Flash
02/08/2012 Digital Clock
01/18/2012 Recording webcam video & audio in a flv file on local drive

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