Sean is a highly sought after Flex developer and consultant with extensive ActionScript programming experience, including more than five years developing for the Flash platform and over a decade of experience designing and developing desktop and web based applications. Business owner, technical author, blogger and Adobe Flex/AIR enthusiast, Sean is an Adobe Flex Developer Community Champion and the creator of the ActionScript Cheatsheets. Sean has posted 2 posts at DZone. View Full User Profile

Flex best practices – Part 1: Setting up your Flex project

  • submit to reddit

Flex project setup considerations review

You have seen some somewhat basic practices that, when followed, can foster a clean and understandable working environment for your Flex project. Consistency is a crucial element in understanding another developer's work. As applications mature, different developers can be called upon to modify and scale the app. During this time, a project's codebase shifts in an organic, lifelike way. This is due to the hands and minds of the multiple developers that contribute to the growth of the project. If a set of best practices is used from the beginning, there is a template to show the developers how to structure and format their work.

These practices can be applied to all of your Flex applications. Take a moment to review these practices:

checkmarkUse workspaces to keep your Flex projects organized.

checkmarkUse a common directory for your Flex workspace in team environments.

checkmarkFollow common naming conventions for Flex project names.

checkmarkDetermine your target platform.

checkmarkUse the default "bin-debug" directory.

checkmarkPut your code in the "src" directory.

checkmarkUse object-oriented programming practices for Flex projects.

checkmarkUse a source code control solution.

checkmarkReference shared SWC libraries using the Flex Library path.

checkmarkUse the libs folder to bundle SWC libraries with your Flex project.

checkmarkUse UpperCamelCasing for MXML file names.

checkmarkUse UpperCamelCasing for ActionScript Class file names.

checkmarkUse UpperCamelCasing for ActionScript Interface file names, and begin the file name with a capitalized letter I.

checkmarkDo not use spaces when naming files!

checkmarkDo not use special characters when naming files.

checkmarkDo not use acronyms or abbreviations.

checkmarkDo not use periods in file names.

checkmarkUse packages to organize and structure your projects codebase.

checkmarkUse the following format for package names: com.seantheflexguy.stringUtils

adobe_fx_download_button_100x30.jpg1.49 KB
Published at DZone with permission of its author, Sean Moore.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)