Fabio Terracini has recently posted an outstanding set of Flex / Actionscript 3 coding guidelines. This is a great resource for anyone looking for establishing or following coding standards when developing a Flex project. Click here to download.
Derrick Grigg is a Rich Internet Application (RIA) freelance contractor based in Toronto, Canada. He specializes in architecting and developing applications using a variety of technologies, most notably Flash, Flex and Coldfusion.
Mar 28, 2007 at 5:01 AM
Thank you so much for providing this.
I am sure that it will be very helpful for many peoples.
http://www.ipod-converter.org
Jul 13, 2007 at 12:51 PM
I saw the flex script guidelines but unfortunately, I'm newer to the realm and I'm personally having trouble implementing them. I realize they're just guidelines, but honestly, it's hard enough to learn through everything the first time and then right when you come out of the gate, to have someone right a new list of guidelines that the industry suddenly starts following is like a nightmare come true, proportional to the week of finals and showing up at the wrong class two hours late with a paint brush in your hand instead of your thumb drive. Do you perhaps have any recommendations for someone like me, who needs a little bit of help learning and getting things organized? I would truly appreciate any insight you have that might help me become better at coding. Also, thanks for the post here. I know a lot of people slower than me won't be able to find it elsewhere.
Jul 16, 2007 at 8:26 AM
I wouldn't say the guidelines in the document are industry standards by any stretch (although it would be great if they, or something close were). They are however good guidelines to follow. I would especially recommend you follow something like that document for your coding since you are just starting out. It is always easier to learn something correctly the first time then to learn it wrong and they have to attempt to unlearn old habits.
Oct 03, 2007 at 5:38 PM
One thing I don’t agree with is the declaration of a variable in the for loop:
for (var item:String in something)
Variables should not be declared at random points in the code, but at the top. Otherwise you could end up with a duplicate declaration in your method. The compiler will catch it, but why set yourself up for that?
All declarations at the top of the method.
The compiler will do this anyhow. For instance:
a = ‘hello’;
trace(a);
var a:String = ‘bye’;
The compiler doesn’t complain and the trace output is “hello”.
Dec 12, 2007 at 12:49 PM
I have read through some of your blogs about flex and really intrigued about the application builder. I'm completely new to it and would like to see any live work that has been created using teh app. Anything to see anywhere. The cross browser compatibility is so appealing. How is it different to others..?
May 21, 2008 at 3:54 PM
Thanks a ton. This is something I have been looking for since starting with Flex about a month ago.
Jul 19, 2008 at 3:16 PM
Thanks for the beautiful article!
I look forward to read more about you!
May 14, 2009 at 9:18 AM
That was interesting to have a glance at, but I've just read the entire Adobe conventions at http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions and couldn't handle another one of those documents right now. What would be really high value though would be if you could just describe where the two documents differ.
Unless there are substantial reasons, I would feel it best to stick with the Adobe conventions. They made sense to me.
Aug 17, 2009 at 12:32 PM
I have studied the guidelines, infect i was in search of these kinds of guidelines for flex coding, these guidelines are related to my industry, thanks for them.