|
Flash CS4 Resources |
Working with projectsContents [Hide]About projectsYou can use Flash projects to manage multiple document files in a single project. Flash projects allow you to group multiple, related files together when creating complex applications. A Flash project can contain any Flash file or other file type, including previous versions of FLA and SWF files. An updated version of the Flash CS4 Project panel is available from Grant Skinner's blog. You can install the updated version with Adobe® Extension Manager CS4. To download Extension Manager, visit the Extension Manager download page at www.adobe.com/go/extension_manager_dl_en. For information about installing extensions with Adobe® Extension Manager, see www.adobe.com/go/learn_extension_manager_en. Create and manage projectsYou use the Project panel (Window > Other Panels > Project) to create and manage projects. The panel displays the contents of a Flash project in a collapsible tree structure. The panel title bar displays the project name. If certain types of project files are missing (not in the specified location), a dialog specifying which items are missing will alert you to the missing files, and give you an opportunity to browse for their locations. Missing files are most commonly external folders not inside the root project folder. All other files are automatically updated based on the root project folder location. When you publish a project, each FLA file in the Publish List (denoted by a check mark next to the FLA name) is published with the publish profile specified for that file. Only one project can be open at one time. If a project is open and you open or create another project, Flash automatically saves and closes the first project. View full size graphic ![]() The Project panel
Create a projectFlash reads the directory of the initial folder you choose. To change directories, create another project. Create a Quick ProjectThe Project panel allows you to quickly create a project based on the currently open FLA file. A Quick Project is identical to any other project. Select Quick Project from the Project menu.Flash creates a project using the front most FLA file as the default document. The Quick Project will be named after the FLA file. To remove the Quick Project, delete it from the Project menu. Multiple Quick Projects are allowed. Note: Creating
a Quick Project from a FLA file that resides in the root of another project
changes the name of the other project to the name of the FLA file,
and sets the default document to the FLA file.
Open an existing project
Note: You cannot open Dreamweaver projects in the Flash Project panel.
Delete a project
Flash removes the selected project from the Project panel. Convert previous projects to the new project formatIn versions of Flash prior to CS4, projects used an XML file with the filename extension .flp—for example, myProject.flp. To use projects created in previous versions of Flash, you must convert the old project to the new format.
The contents of the specified folder will be displayed in the Project panel. Add a new file or folder to a projectThe Project panel allows you to open, create, and remove files and folders. The Project panel filters files by filename extension. However, you can manually hide files by preceding the filename with a special character, such as an underscore. To enable this feature, enter the special characters to filter in the “Hide files or folders beginning with” section of the Panel Preferences (Options > Panel Preferences). By default, the Project panel only shows Flash document types (FLA, SWF, SWC, AS, JSFL, ASC, MXML, TXT, XML), but you can add custom types in the Settings tab of the Panel Preferences (Options > Panel Preferences). The Project panel shows all files opened recently in the panel in the Recent Files folder at the top of the project tree. Recent Files are sorted in the order they were opened. Only files opened with the Project panel appear in this list. To disable/enable the recent files folder, toggle the Show Recent Files checkbox in the Settings Tab of the Panel Preferences. You can also specify how many files are shown in the list. To clear the Recent Files list, select Clear Recent Files from the Options menu, or right-click the Recent Files folder, and select Clear Recent Files from the context menu. Clearing the recent files list does not remove the files from your computer.
Note: If a file or folder with the name you’ve specified
already exists, a dialog alerts you about the existing file or folder.
The new file appears in the file list. Rename a project
Open a file from the Project panel in Flash Double-click
the filename in the Project panel. If the file is of a native file type (a type supported by the Flash authoring tool), the file opens in Flash. If the file is a non-native file type, the file opens in the application used to create it. Add an external folder to a projectThe Project panel allows for the addition of folders external to the project root folder, referred to as locations. Folder paths can be added (and shown or hidden) on a global basis, or per project. Locations act as any other folder, and have all the same functionality as folders in the project root folder. You cannot delete or remove a location in the operating system file browser. Remove them using the Locations tab in the Project or Panel preferences. Create ActionScript classesThe Project panel supports creating template-based ActionScript classes within an ActionScript package structure. Use the Create Class button to add class files to specified packages. ActionScript 3.0 and ActionScript 2.0 templates are supported. Use the panel preferences to specify options for classes. If you specify a folder in the Save Classes In text box in the Classes tab of the Panel preferences, the Project panel shows that folder in the project directory with a <> symbol to indicate that it is the default location for new classes. Flash adds this folder to the class path when publishing via the Project panel. This class path folder can reside in a subdirectory of your project folder, in a directory relative to your project folder, or anywhere on your computer. You can set the class path globally in the Panel preferences, or per project in the Project preferences. By default, all class packages are stored in the root of your project. The classes’ folder visibility can be toggled in the Project panel preferences Settings tab. Clicking the Create Class button does not overwrite class files. If the file exists, it does not create a new file. This can be useful if you would like to bind an existing class to a movie clip, move the movie clip into the appropriate library folder, and set the appropriate linkages. Create class templatesThe Project panel supports a simple template structure, used when creating class files. This system is composed of four files. All the base files are located in the Flash Configuration folder, in the /Project/templates/ subdirectory. The four files are:
Each of these template files has custom template tags that are replaced with dynamic data when a new class is created. You can place these tags anywhere in your class template file. The following are the tags included in each file:
To create a template file, you can either modify the template files, or create your own class template. To change the default class templates, open the Panel Preferences and browse to the correct template file. Flash then uses this file for all your projects. The Project preferences dialog contains a similar tab that allows you to set template files on a per-project basis. The templates set in the Panel preferences is only used when creating new projects. To change a template path for a project, set it in the Project preferences. Template paths in the Project and Panel preferences must be absolute. Relative paths are not supported. Pin a directoryWhen dealing with large projects, you can reduce clutter by only showing files in a specific directory. To pin a different directory, un-pin the current pinned directory first. Locations and the classes folder (and their subdirectories) can also be pinned. When a location or the classes folder (or subfolder) is pinned, the classes folder is not visible. Compiling FLA files
The Project panel allows you to create a publish list. This is a list of FLA files that can be batch-compiled at any time.
Create Flash projects for use with Flex class filesFlash lets you create skins and other visual elements for use in Flex, as well as allowing you to create ActionScript code in Flex but publish the resulting SWF file using Flash. To support the use Flex class files in Flash, the Project panel provides support for identifying the Flex SDK. To use Flex classes in Flash, you must specify the location of the Flex SDK. Additional resourcesThe following resources provide additional detailed information about working with projects.
|