Specifications
15
Chapter 2: Flex Application Structure
One of your first tasks when developing an Adobe® Flex™ application is to set up your development directory
structure. As part of setting up this directory structure, you must decide how to organize your application assets,
how to share assets across applications, and how to configure the compiler to create your application SWF file.
Topics
Installation directory structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Development directory structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Compiling an application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Deployment directory structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Installation directory structure
Before you can begin to set up your application development environment, be familiar with the Flex installation
directory structure for the following products:
• Flex SDK
• Adobe ® Flex® Builder™
Flex SDK installation directory structure
When you install Flex SDK, the installer creates the following directory structure under the installation directory:
Directory Description
/ant Contains the Flex Ant tasks, which provide a convenient way to build your Flex
projects.
/asdoc Contains ASDoc, a command-line tool that you can use to create API language
reference documentation as HTML pages from the classes in your Flex application.
/bin Contains the executable files, such as the mxmlc and compc compilers.
/frameworks Contains configuration files, such as flex-config.xml and default.css.
/frameworks/libs Contains the library SWC files. You use the files to compile your application.
/frameworks/locale Contains the localization resource files.










