Adobe
Productos
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Más productos
Soluciones
Marketing digital
Medios digitales
Educación
Servicios financieros
Administración
Gestión de experiencias web
Más soluciones
Formación Ayuda Descargas Empresa
Comprar
Uso doméstico Para uso personal y autónomos
Educación Para estudiantes, profesores y empleados
Empresas para pequeñas y medianas empresas
Programas multilicencia para empresas, centros educativos y gobiernos
Otras formas de comprar
Ofertas especiales
Búsqueda
 
Información Registro
Bienvenido, Mi carro Mis envíos Asistencia
Mi cuenta
Salir
¿Por qué registrarse? Regístrese para poder gestionar su cuenta y acceder a descargas de prueba, ampliaciones de productos, diferentes áreas de la comunidad y mucho más.
Adobe
Productos Secciones Comprar   Búsqueda  
Soluciones Empresa
Ayuda Aprendizaje
Registro Salir Mis envíos Asistencia
Date Date
Qty:
Subtotal
Checkout
Adobe Developer Connection / Centro de desarrollo de Flash /

Strategies for organizing Flash projects

por 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

Herramientas de página

Compartir en Facebook
Compartir en Twitter
Compartir en LinkedIn
Marcar como favorito
Imprimir

Tags

Requisitos

Conocimientos previos

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

Nivel de usuario

Todos

Productos necesarios

  • 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 4: Events
  • Creating ActionScript 3.0 components in Flash – Part 2: MenuBar component prototype
  • Creating an accessible animated presentation in Flash
  • Creating ActionScript 3.0 components in Flash – Part 3: From prototype to component
  • Creating ActionScript 3.0 components in Flash – Part 1: Introducing components
  • Flash glossary: Frame script
  • Flash glossary: Guide layers
  • Flash glossary: Frame label
  • Five demos of Flash CS4 Professional
  • Working with the Project panel in Flash Professional CS5.5

Productos

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile apps
  • Photoshop
  • Touch Apps

Soluciones

  • Marketing digital
  • Medios digitales
  • Gestión de experiencias web

Sectores

  • Educación
  • Servicios financieros
  • Administración

Ayuda

  • Centros de soporte de productos
  • Pedidos y devoluciones
  • Descarga e instalación
  • Mi Adobe

Aprendizaje

  • Adobe Developer Connection
  • Adobe TV
  • Formación y certificación
  • Foros
  • Centro de diseño

Formas de comprar

  • Para uso personal y autónomos
  • Para estudiantes, profesores y empleados
  • Para estudiantes, profesores y empleados
  • Para empresas, centros educativos y gobiernos
  • Ofertas especiales

Descargas

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Empresa

  • Sala de noticias
  • Programas de socios
  • Responsabilidad social corporativa
  • Oportunidades laborales
  • Relaciones con los inversores
  • Actos
  • Jurídico
  • Seguridad
  • Contactar con Adobe
Seleccionar región España (Cambiar)
Seleccionar región Cerrar

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.

Condiciones de uso | Política de privacidad y cookies (Actualizado)