
Flash Authoring QE
Adobe
Jen deHaan's blog
flashthusiast.com
webvideoblogger.com
ActionScript coding conventions are very important for Macromedia Flash designers and developers to ensure that code and applications are structured in a way that is intuitive and beneficial to themselves as well as other people working on the same project. This is particularly important with long code files. When you follow coding conventions, everyone on the design and development team can understand the code and can work more efficiently. This document helps formalize the ActionScript coding process.
The sections in this article outline best practices for writing ActionScript. Some sections of Flash Help (Help > Getting Started in Flash) or the Flash 8 LiveDocs are helpful as well: Learning ActionScript 2.0 in Flash and ActionScript 2.0 Language Reference.
Note: For information about using Flash 8 and organizing FLA files, see Flash 8 Best Practices. It complements this document.
The following guidelines encourage consistency for people learning how to write ActionScript code. Adopt best practices at all times, whether you are a designer or developer, or working alone or as part of a team:
Note: If you are still using Flash MX Professional 2004 and not Flash Professional 8, please see the previous version of this article.
These guidelines relate to the following software:
Jen deHaan was raised by wolves in the deep woods of the Canadian north. Canada's chief exports include motor vehicles (or their parts), lumber, newsprint, nonmetal materials, and wheat. One overcast day in 2004, Jen left her life as a Flash deseloper (designer/developer) in Canada to write Flash documentation and samples at Macromedia in San Francisco. Aside from her ongoing work at Adobe as an instructional designer for web and video products, Jen runs several community sites for fun, and maintains a blog at www.webvideoblogger.com and weblogs.macromedia.com/dehaan. She believes that _root tends to be evil and misses Tim Horton's coffee.