The Flex Project Directory Structure
Structuring your code into manageable chunks is critical your sanity and the success of your project over time. The directory structure that you use will be largely influenced by the structural framework that you choose to employ (such as Cairngorm or PureMVC). I make a basic assumption throughout this series that readers will be using a Model View Controller (MVC) structure.
A Basic MVC Directory Structure
FlexProjectName <- Generated by Flex Builder
- libs
- src
— com
—- domain <- Replace with domain, ex: tsclausing
—– project <- Replace with project name, ex: blogdemo
—— control
—— model
——– vo
—— views
- Main.mxml <- Your default application file
This is a great place to begin your applications. We will not be using any structural framework libraries for quite some time in this series while still utilizing this directory structure. Other folders may exist at the same level as src and libs which are generated by Flex Builder when a new project is created. I won’t be focusing on those here.