Game Development Reference
In-Depth Information
Project Panel
A new addition to Flash 10 is a great feature called the Project panel, which allows you to manage all
your project files and folders from one convenient place.
When you're working with only two or three files (as you will be for the next few chapters), the useful-
ness of the Project panel might not seem all that apparent, but it certainly will by Chapter 8 (you'll be
juggling a small army of AS files). It's also extremely useful if you're working on a number of different
projects at the same time because simply selecting the project name from the menu will make all the
project files readily accessible. It also includes some more advanced features such as the ability to
automatically create classes based on templates. You can also add and delete files and folders directly
from the comfort of the Project panel without having to open Windows Explorer or OSX Finder.
You'll notice the Project panel on the left side of the Flash work-
space. (If you are not using the Developer workspace or if it's
not visible, select Window ° Other Panels ° Project .) Let's create
a project for the Hello World program.
1. In the Project panel, click the Projects drop-down menu and
select Quick Project . All the files you're currently using will
be added to the project, and the project will be named
after the FLA file; in this case, helloWorld . Your Project panel
should look now like Figure 1-11. (Depending on your mon-
itor resolution, the right side of the Project panel might not
be entirely visible. Drag the right edge of the window to
increase its width if you need to.)
2. When you create a Quick Project , Flash automatically uses
the FLA file as the default document , which it indicates by
a check mark next to it. The default document is the FLA
file from which Flash creates the SWF file. The Quick Project
option also automatically gives the project the same name
as the default document.
Now that your project has been created, you can test your pro-
gram and publish the SWF simply by clicking the Test Project but-
ton. You can also browse and edit each of the files just by clicking
their names in the Project panel.
Figure 1-11. Use the Project panel to help
you keep your files organized.
In most cases, using Quick Project will serve you perfectly well, but if you want to cre-
ate a project from files or folders that aren't already open, you should use the Open
Project option. Selecting Open Project allows you to browse to a folder that you want
to use as your project root, assign a project name, and then manually assign a default
document.
For game development, the Project panel will become an extremely useful tool to help keep all your
projects organized and will speed up your development time. Try to get into the habit of using it with
each project.
 
Search Nedrilad ::




Custom Search