Adobe
Products

Top destinations

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • SiteCatalyst
  • Students
  • Elements family

Adobe Creative Cloud

  • What is Adobe Creative Cloud?
  • Design
  • Web
  • Photography
  • Video
  • Students
  • Teams
  • Enterprise
  • Educational institutions

Design and photography

  • Photoshop
  • Illustrator
  • InDesign
  • Adobe Muse
  • Lightroom

Video

  • Adobe Premiere
  • After Effects

Web development and HTML5

  • Edge Tools & Services [opens in a new window]
  • Dreamweaver
  • Gaming [opens in a new window]

Adobe Marketing Cloud

  • What is Adobe Marketing Cloud?
  • Digital analytics
  • Social marketing
  • Web experience management
  • Testing and targeting
  • Media optimization

Analytics

  • SiteCatalyst
  • Adobe Discover
  • Insight

Social

  • Adobe Social

Experience Manager

  • CQ
  • Scene7

Target

  • Test&Target
  • Recommendations
  • Search&Promote

Media Optimizer

  • AdLens
  • AudienceManager
  • AudienceResearch

Document services

  • Acrobat
  • EchoSign [opens in a new window]
  • FormsCentral [opens in a new window]
  • SendNow [opens in a new window]
  • Acrobat.com [opens in a new window]

Publishing

  • Digital Publishing Suite

  • See all products
Business solutions

By business need

  • Digital analytics
  • Digital publishing
  • Document management
  • Media optimization
  • Social marketing
  • Testing and targeting
  • Video editing and serving
  • Web development [opens in a new window]
  • Web experience management
  • See all business needs

By industry

  • Broadcast
  • Education
  • Financial services
  • Government
  • Publishing
  • Retail
  • See all industries
Support & Learning

I need help

  • Products
  • Adobe Creative Cloud
  • Adobe Marketing Cloud
  • Forums [opens in a new window]

I want to learn

  • Training and tutorials
  • Certification [opens in a new window]
  • Adobe Developer Connection
  • Adobe Design Center
  • Adobe TV [opens in a new window]
  • Adobe Marketing Center
  • Adobe Labs [opens in a new window]
Download
  • Product trials
  • Adobe Flash Player
  • Adobe Reader
  • Adobe AIR
  • See all downloads
Company
  • Careers at Adobe
  • Investor Relations
  • Newsroom
  • Privacy
  • Corporate Social Responsibility
  • Customer Showcase
  • Contact us
  • More company info
Buy
  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers
  • Adobe Marketing Cloud sales [opens in a new window]
Search
 
Info Sign in
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Welcome,
My Adobe
My orders
My information
My preferences
My products and services
Sign out
My cart
Privacy My Adobe
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out Privacy 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
Promotions
Estimated shipping
Tax
Calculated at checkout
Total
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
animationeffectsFlash Professional CS5graphic effects
Was this helpful?
Yes   No

By clicking Submit, you accept the Adobe Terms of Use.

 
Thanks for your feedback.

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 a simple animation in Flash
  • Flash glossary: Motion tween
  • Flash glossary: Classic tween
  • Flash glossary: Shape tween
  • Flash glossary: Roving keyframe
  • Flash glossary: Transparency
  • Flash glossary: Motion Editor
  • Flash glossary: Blend mode
  • Flash glossary: Guide layers
  • Building Preloaders and Progress Bars in Macromedia Flash

Products

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • Digital Publishing Suite
  • Elements family
  • SiteCatalyst
  • For education

Download

  • Product trials
  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR

Support & Learning

  • Product help
  • Forums

Buy

  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers

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 © 2013 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

Ad Choices

Reviewed by TRUSTe: site privacy statement