Adobe
Produkte
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Weitere Produkte
Lösungen
Digitales Marketing
Digitale Medien
Bildungseinrichtungen
Finanzdienstleistungen
Behörden
Web Experience Management
Weitere Lösungen
Lernressourcen Hilfe Downloads Über Adobe
Kaufen
Home-Office für privaten Gebrauch und Heim­arbeits­platz
Education für Schüler, Studierende, Lehrkräfte, Dozenten und Mitarbeiter
Business Kleine und mittlere Unternehmen
Lizenzprogramme für Unternehmen, Bildungs- und Regierungs­ein­richtungen
Weitere Bestell­möglich­keiten
Sonder­angebote
Suchen
 
Info Anmelden
Willkommen, Mein Warenkorb Meine Bestellungen Mein Adobe
Mein Adobe
Meine Bestellungen
Meine Daten
Meine Einstellungen
Abmelden
Vorteile der Registrierung Als registrierter Anwender erhalten Sie Zugriff auf Ihr Konto, Testversionen, Produkterweiterungen, bestimmte Community-Bereiche u. v. m..
Adobe
Produkte Bereiche Kaufen   Suchen  
Lösungen Über Adobe
Hilfe Lernressourcen
Anmelden Abmelden Meine Bestellungen Mein Adobe
Voraussichtliche Verfügbarkeit bei VorbestellungDateIhre Kreditkartenkonto wird erst dann belastet, wenn das Produkt ausgeliefert wird. Änderungen des voraussichtlichen Verfügbarkeitsdatums sind vorbehalten. Voraussichtliche Verfügbarkeit bei VorbestellungDateIhre Kreditkartenkonto wird erst dann belastet, wenn das Produkt zum Download bereit ist. Änderungen des voraussichtlichen Verfügbarkeitsdatums sind vorbehalten.
Mge:
Für Ihre Bestellung ist ein Berechtigungsnachweis erforderlich.
Zwischensumme
Bestellung prüfen
Developer Connection / Flash Developer Center /

Strategies for organizing Flash projects

Von 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

Seitentools

Auf Facebook posten
Auf Twitter posten
Auf LinkedIn posten
Lesezeichen
Drucken
best practice file management Flash Professional

Voraussetzungen

Erforderliche Kenntnisse

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

Niveau

Alle

Erforderliche Produkte

  • 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

  • Flash glossary: Frame label
  • Flash glossary: Frame script
  • Flash glossary: Guide layers
  • Creating ActionScript 3.0 components in Flash – Part 1: Introducing components
  • Five demos of Flash CS4 Professional
  • Working with the Project panel in Flash Professional CS5.5
  • Creating ActionScript 3.0 components in Flash – Part 6: Invalidation model
  • Creating an accessible animated presentation in Flash
  • Exploring the new 3D features in Flash CS4 Professional
  • Creating ActionScript 3.0 components in Flash – Part 5: Styles and skins

Produkte

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

Lösungen

  • Inhaltserstellung
  • Digitales Marketing
  • Web Experience Management

Branchen

  • Bildungswesen
  • Finanzdienstleistungen
  • Behörden

Hilfe

  • Produktspezifische Support-Seiten
  • Bestellungen und Retouren
  • Download und Installation
  • Mein Adobe

Lernressourcen

  • Adobe Developer Connection
  • Adobe TV
  • Schulung und Zertifizierung
  • Foren
  • Design Center

Bestellmöglichkeiten

  • Für privaten Gebrauch und Heim­arbeits­platz
  • Für Schüler, Studierende, Lehrkräfte und Dozenten
  • Für kleine und mittlere Unternehmen
  • Für Unternehmen und Organisationen
  • Sonderangebote

Downloads

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

Über Adobe

  • Presse
  • Partnerprogramme
  • Soziales Engagement
  • Offene Stellen
  • Investoren
  • Veranstaltungen
  • Rechtliche Informationen
  • Softwarepiraterie
  • Impressum
  • Sicherheit
  • Kontakt
Region wählen Deutschland (Ändern)
Region wählen Schließen

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.

Nutzungsbedingungen | Richtlinien für den Datenschutz und Cookies (Aktualisiert)

AdAuswahl