Showcase and discover digital art at yex

Follow Design Stacks

Subscribe to our free newsletter to get all our latest tutorials and articles delivered directly to your inbox!

ActionScript 2.0 Best Practices

ActionScript 2.0 Best Practices

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 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:

  • When you work on ActionScript documents: Adopting consistent and efficient practices helps you speed up your workflow. Additionally, your code is often more portable within the framework of a larger project, and easier to reuse.
  • When you share AS files: Other people editing the document can quickly find and understand ActionScript and consistently modify the code.
  • When you work on applications: Multiple authors can work on an application with fewer conflicts and greater efficiency.
  • When you are learning or teaching ActionScript: Following coding conventions reduces the need to relearn particular methodologies. If students learning ActionScript practice consistent and better ways to structure code, they might learn the language more quickly and with less frustration.


These guidelines relate to the following software:

Flash Professional 8