
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
284
|
Chapter 11: An OOP Application Framework
The Basic Directory Structure
Before we start creating content, let’s lay out the basic directory structure for our
application.
Follow these steps:
1. Create a directory named AppName on your hard drive. The AppName directory
will contain everything in our project, including source code and final output. In
a real project, you’d use your application’s actual name instead of AppName.
2. In the AppName directory, create a subdirectory named deploy. The deploy direc-
tory will contain the final, compiled application, ready for posting to a web site
or other distribution medium.
3. In the AppName directory, create a subdirectory named source. The source direc-
tory will contain all source code for the application, including classes (.as files)
and Flash documents (.fla files).
Your application directory structure should look like this:
AppName/
deploy/
source/
In our example application, we have no external assets such as sounds, text copy
(Word documents, etc.), or artwork (e.g., scans, Photoshop files, or Illustrator files).
In a more complex scenario, we’d create an AppName/assets folder to contain those
external files.
The Flash Document (.fla file)
Every Flash application must include at least one Flash document (.fla file). The Flash
document