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 /

Creating graphic effects using the new Deco scripts in Flash Professional CS5

by Jonathan Duran

Jonathan Duran
  • Adobe

Content

  • Overview of the new effects
  • Microbes animation: Building Brush, Symmetry Brush, and Scripted Animation
  • Angelic Flame animation: Tree Brush with Flame Animation
  • Crystalline Flying Object animation: Lightning Brush, Symmetry Brush, and Spray Brush

Modified

10 May 2010

Page tools

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

Requirements

Prerequisite knowledge

Working knowledge of the Flash Professional interface, use of symbols, and basic Timeline animation will be helpful.

User level

Intermediate

Required products

  • Flash Professional (Download trial)

Sample files

  • deco_effects_flcs5.zip (2196 KB)

The Deco tool introduced in Flash CS4 Professional has been updated in Flash Professional CS5 with new graphics effects. The tool is based on the Flash procedural modeling engine, which is a library that processes algorithms using the Flash JavaScript API (JSAPI). The algorithms are built into structured files that the engine can interpret. In Flash CS5, Adobe has added a number of new scripts to the Deco tool to help you create new and attention-grabbing effects.

This article introduces these effects and showcases interesting uses for some of them using three examples:

  • Microbes
  • Angelic Flame
  • Crystalline Flying Object

Overview of the new effects

You can find the new Deco effects in the Drawing Effect list of the Deco tool (see Figure 1). The Vine Fill, Grid Fill, and Symmetry Brush effects were all included with Flash CS4; see my previous article for more details on those effects. Grid Fill has been updated in Flash CS5 to accept four different tile symbols and arrange them in one of a few different patterns.

Deco Tool Drawing Effects list in Flash CS5
Figure 1. Deco Tool Drawing Effects list in Flash CS5

The following effects were introduced in Flash CS5:

  • 3D Brush sprays symbols onto the Stage like a spray brush, but adjusts the scale of the symbols to make them appear larger at the bottom of the Stage and smaller at the top. This can be used to create 3D landscape effects.
  • Building Brush creates a varied set of skyscraper buildings.
  • Decorated Brush is a drawing brush that paints various premade black-and-white shapes onto the Stage.
  • Fire Animation creates a frame-by-frame vector animation of a moving flame.
  • Flame Brush is similar to the Fire Animation but paints static vectors of flame shapes to the Stage.
  • Flower Brush is similar to the Decorated Brush, except the Flower Brush paints colored vector flower shapes to the Stage.
  • Lightning Brush creates forked lightning shapes on the Stage. An animation option in the Property inspector allows you to animate the brush stroke over frames.
  • Particle System is an animated effect that creates a shower of particles using either built in shapes or custom symbols.
  • Smoke Animation is a companion effect to the Fire Animation. It creates a frame-by-frame vector animation of puffs of smoke.
  • Tree Brush creates various branching tree shapes as the brush is painting on the Stage.

Initially some of the effects may seem limited in use, but I quickly found that using them, I could rapidly create interesting shapes to use in animations. The following examples use one or more of the new Deco effects in conjunction with the templates in Flash Professional CS5 to create some interesting starter animations in just a few minutes.

Microbes animation: Building Brush, Symmetry Brush, and Scripted Animation

The Building Brush can provide some interesting starting shapes when the default building types are broken apart. In this example, I used the Building Brush together with the Symmetry Brush to create circular shapes that look like tiny bacteria with hairs around the outside (see Figure 2).

Building Brush used with Symmetry Brush
Figure 2. Building Brush used with Symmetry Brush

Once I have an interesting shape to work with I can use some of the new templates that come with Flash CS5 to add some random motion to the shapes. To use the template, I simply open the template files I want to use and then cut and paste the sample code into the file I'm working on (see Figure 3).

Copying template code to the Deco shape
Figure 3. Copying template code to the Deco shape

After varying the shape of the microbes, I added some filters to make them all blend into the background. Finally, I added some static vector shapes on top of them to make it appear like a view through a microscope lens (see Figure 4).

Microbes (click to view animation)
Figure 4. Microbes (click to view animation)
  • View animation (+)

Angelic Flame animation: Tree Brush with Flame Animation

The Tree Brush creates and amazing variety of branching forms. While it does draw excellent trees, there are a variety of other artistic uses for the Tree Brush as well. In the Angelic Flame example, I used the Tree Brush to create complex wing-like shapes by building up a series of brush strokes with slightly different shades of one color (see Figure 5).

Creating the tree wings
Figure 5. Creating the tree wings

Then I added the Fire Animation in place of the body. I copied and pasted the animated fire in reverse on the Timeline to make a smooth animation (see Figure 6).

Adding the Fire Animation body
Figure 6. Adding the Fire Animation body

By adding some blur filters to the original Deco shapes, the finished artwork has an interesting depth. I also added a blur filter to the Flame Animation to make it look more natural (see Figure 7).

Angelic Flame (click to view animation)
Figure 7. Angelic Flame (click to view animation)
  • View animation (+)

Crystalline Flying Object animation: Lightning Brush, Symmetry Brush, and Spray Brush

The Crystalline Flying Object example is similar to the Microbes, except I used the Lightning Brush as the starter graphic instead of the Building Brush (see Figure 8).

Lightning Brush with Symmetry Brush
Figure 8. Lightning Brush with Symmetry Brush

To make a space setting, I used the random function of the Spray Brush to create a star field in the background (see Figure 9). To make the entire scene appear to move through space, I over-sprayed the star field across the pasteboard and then added a motion tween.

Using the Spray Brush to create a star field background
Figure 9. Using the Spray Brush to create a star field background

Finally, to make the crystal object spin, I wrote a few lines of ActionScript to run on the enterFrame event (see Figure 10).

ActionScript for the moving the crystal object
Figure 10. ActionScript for the moving the crystal object

Lastly, as with the other animations, I used filters to enhance the effect. In this example, I applied a glow filter to the spiral shape (see Figure 11).

Crystalline Flying Object (click to view animation)
Figure 11. Crystalline Flying Object (click to view animation)
  • View animation (+)

Where to go from here

Clearly, there are tons of interesting things you can do with the Deco tool and the new effects. This article has highlighted just a few graphic examples. You can use the Deco tool to quickly generate generic shapes for games, animations, or whatever you can think of. In addition, the Deco scripts included with Flash can be opened, copied, and modified if you'd like to try making your own Deco effects. See my companion article, Deco tool and Spray Brush for creating complex, geometric patterns in Flash, for details on where to find the scripts and how they are processed by Flash.

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

More Like This

  • Creating an accessible animated presentation in Flash
  • Exploring the new 3D features in Flash CS4 Professional
  • Webcam Motion Detection: Using the BitmapData API in Flash 8
  • Creating animation in ActionScript 3
  • Exploring the Spring tool in Flash Professional CS5
  • Blitting and caching movie clips in Flash
  • Advanced character animation in Flash
  • Augmented reality with animated avatars using the 3D drawing API
  • Easy animation with the Motion Editor in Flash
  • Flash CS4 Missing Manual excerpts: Video, testing and debugging, optimization, and sound

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