You are hereFlex / AS3 Coding Conventions

Flex / AS3 Coding Conventions


By kristoffersingleton - Posted on 24 January 2007

Recently some conversations I was involved in turned to Flex Coding conventions for actionscript 3. Most of the guys around my office are from Java backgrounds and they asserted, correctly for the most part that Sun's Java standard doc serves as a good starting point.

This will definately be a great place to start if you have never taken a look at it, or don't come from a strong CS background.

Since it is a good starting point Here is the Java Version:
http://java.sun.com/docs/codeconv/

Here are some of the other resources that I was able to dig up:

http://www.flex-compiler.lcs.mit.edu/Harpoon/HOWTO/code-conventions.html

This one starts with the Sun Java version and adds in the Flex Specifics

Simon Wacker also lists a version ( although AS2 specific ) at his blog from his work on the as2lib framework:

http://www.simonwacker.com/blog/archives/000087.php

You can also download the PDF version directly

Sponsor Links: if you will...

You would think that the Adobe document might be the best place to start but beware. Their document was written specifically with AS2 in mind and some of the items in that document such as suffixes for variable type names are becoming obsolete. However I will list that article below for completeness sake.

Adobe AS2 standards: http://www.adobe.com/devnet/flash/whitepapers/actionscript_standards.pdf

As I come up with additional specifics, I will try to post them.

_K

[ XBox Live ]