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 /

Strategies for organizing Flash projects

by Tommi West

Tommi West
  • tommiland.com

Content

  • Forgetting to create folders to store files in the Library panel
  • Using the Flash-generated symbol names, rather than renaming symbols
  • Placing all of the code for an entire project on Frame 1 of the Timeline
  • Adding frame scripts to any layer of the Timeline, instead of only the top layer
  • Where to go from here

Created

16 January 2012

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
best practice file management Flash Professional

Requirements

Prerequisite knowledge

Previous experience working with Flash Professional is recommended. Refer to Avoiding common authoring mistakes to find links to other articles in this series.

User level

All

Required products

  • Flash Professional (Download trial)

A well-organized Library panel in Adobe Flash Professional helps make your projects easy to understand and maintain. It also helps you speed development time when making updates to an existing project. This article contains suggestions to keep your assets manageable, even when building larger projects.

Forgetting to create folders to store files in the Library panel

If you click the New Folder icon at the bottom of the Library panel, you create a folder within the Library. When creating a folder, be sure to rename it descriptively, rather than keeping the default name that Flash assigns (see Figure 1).

Figure 1. Click the New Folder button to add a new folder to the Library.
Figure 1. Click the New Folder button to add a new folder to the Library.

Use the folders to store related assets. For example, if an animation features a dog, a fisherman, and a boat, you could create three different folders that contain all of the imported artwork and symbols used for each of these.

Click and drag elements in the Library panel to place them inside the folders you create. You can also create subfolders if desired. The folders in the Library do not reduce performance of the published SWF and they do not add additional file size. Using Library folders helps you quickly locate specific items to be edited and helps other developers see how your project is structured by reviewing the Library panel.

Depending on the project, you may also find it helpful to link to Runtime Shared Libraries, rather than import all of the assets needed into the main project's Library panel. In the Library panel, click the icon to access the Options menu in the top right corner. From the menu that appears, select the option Runtime Shared Library URL. In the dialog box that appears, enter the path to the Runtime Shared Library SWF file (see Figure 2).

Figure 2. Type the URL to the Runtime Shared Library in the dialog box.
Figure 2. Type the URL to the Runtime Shared Library in the dialog box.

To learn more about working with Runtime Shared Libraries, see Sharing library assets at runtime in the Flash Professional online documentation.

Using the Flash-generated symbol names, rather than renaming symbols

After selecting an element (either on the Stage or in the Library) you can press F8 to open the Convert to Symbol dialog box. If you simply choose a symbol type from the menu (movie clip, button, or graphic) and click OK, the symbol is created in the Library and the element on the Stage is updated to display a symbol instance. If you do not name the symbol, Flash names them uniquely for you, as Symbol 1, Symbol 2, and so on (see Figure 3).

Figure 3. If you do not name each symbol as it is created, Flash generates a name with ascending numeric valuse to ensure each symbol is assigned a unique name.
Figure 3. If you do not name each symbol as it is created, Flash generates a name with ascending numeric valuse to ensure each symbol is assigned a unique name.

It is a best practice to always name symbols at the moment you create them. It is frustrating to open someone else's Flash project to see the generic symbol names listed in the Library panel. Without descriptive names, you can click on each asset in the Library one by one to preview and rename them, but the process of renaming may break animations that are set up to use the generically named symbols.

Placing all of the code for an entire project on Frame 1 of the Timeline

If you are creating a banner ad or very simple Flash project, it may be simple enough to create a new layer in the Timeline, drag it to the top of the Layer stack, name it Actions and then add your ActionScript code to Frame 1 of the Actions layer.

However, if you are building a more complex project, the common convention involves creating a shell frame script on Frame 1 that initiates the project, and then creating additional, modular class files (AS files) and linking to them externally from the project.

Avoid the temptation to add lengthy and complex code all on Frame 1 of the top layer, because this makes the code much harder to parse when working in teams or opening up the project later to make updates.

Adding frame scripts to any layer of the Timeline, instead of only the top layer

If you add frame scripts to all of the various layers in the main Timeline, Flash will not present an error message. However, you may cause other developers (or yourself) to hunt for the code later when a project needs to be updated.

Although you can use the Movie Explorer to locate all of the scripts used in a project, it is time-consuming. You can also scan the Timeline looking for the lowercase a symbols on frames. This practice quickly becomes tedious, especially when working with a longer Timeline.

For these reasons, it is optimal to create a new layer in the Timeline and drag it to the top of the Timeline. Name the top layer Actions (or ActionScript) and use the top layer exclusively for adding frame scripts (see Figure 4).

Figure 4. Create a layer specifically for adding frame scripts and drag it to the top of the Timeline.
Figure 4. Create a layer specifically for adding frame scripts and drag it to the top of the Timeline.

That way, the scripts are much easier to find and you are following the convention used by Flash developers to only add one object to each layer in the Timeline.

Where to go from here

Whenever you are creating a new project, take the time to organize the assets so that you can quickly access everything you need. Create folders in the Library panel and the Timeline to consolidate elements for each section. Always use descriptive names for symbols and layers so that you can identify them easily.

The following sections in the Flash Professional documentation include other helpful organization tips:

  • Structuring FLA files
  • Organizing ActionScript in an application
  • Create and organize layers

Refer to Avoiding common authoring mistakes to find links to other articles in this series.

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

More Like This

  • Creating ActionScript 3.0 components in Flash – Part 6: Invalidation model
  • Creating ActionScript 3.0 components in Flash – Part 7: Focus management
  • Creating ActionScript 3.0 components in Flash – Part 8: Keyboard support
  • Common mistakes working with fonts and text objects in Flash
  • Avoiding common Timeline errors in Flash
  • Creating ActionScript 3.0 components in Flash – Part 1: Introducing components
  • Guide for Apple App Store submissions
  • Tips for using Flash efficiently
  • Issues involving project assets in Flash
  • Preventing problems with buttons and interactivity in 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