Chapter 19: Best Practices And Coding Conventions For Actionscript 2.0 - MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH Manual

Learning actionscript 2.0 in flash
Table of Contents

Advertisement

CHAPTER 19
Best Practices and Coding
Conventions for ActionScript 2.0
Macromedia Flash designers and developers must write code and structure applications in a
way that is intuitive and beneficial to themselves as well as to the other people who are
working on the same project. This is particularly important in FLA files with lots of assets, or
long code files. When you follow best practices and coding conventions, everyone on the
design and development team can understand the file structure and ActionScript code and
can work more efficiently. This document helps formalize the Flash development and
coding process.
Because it is common for more than one designer or developer to work on a single Flash
project, teams benefit when everyone follows a standard set of guidelines for using Flash,
organizing FLA files, and writing ActionScript 2.0 code. The sections in this chapter outline
the best practices for writing ActionScript, and some sections of Using Flash cover best
practices when using the Flash authoring tool.
The following guidelines encourage consistency for people learning how to use Flash and
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 Flash or ActionScript documents
Adopting consistent and efficient practices helps you speed up your workflow. It is faster
to develop using established coding conventions, and easier to understand and remember
how you structured your document when you want to edit it further. Additionally, your
code is often more portable within the framework of a larger project, and easier to reuse.
When you share FLA or AS files
Other people editing the document can quickly find and understand ActionScript,
consistently modify code, and find and edit assets.
When you work on applications
Multiple authors can work on an application with fewer conflicts and greater efficiency.
Project or site administrators can manage and structure complex projects or applications
with fewer conflicts or redundancies if you follow best practices and coding conventions.
19
731

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents