Coding conventions and tips for Flex normally used

1) Private & protected property names are prefaced with an underscore by convention. I.e. private var _myProp:String;

2) Use the camelCase letter for function name and variable name.

3)Obtain a reference to the top-level application object from anywhere within a flex app by using the static property Application.application

4)Use CSS (Application{backgroundGradientAlphas , backgroundGradientColors }) & compiler arg (-default-background-color #CCCCCC) to change the background color of a flex app.


  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: