Coding rules

Don't copy >> paste

Prevent code redundancy. Isolate repeating functionality in a class or function. Don't copy >> paste just because it's easy.

Seperate code from Layout

Make your code in .as files and the layout in the .fla files. It's even better to create drawings in the Action Script code.

OO

Make your code  Object Oriented, so put all your code in AS classes

Inheritence

Make use of  Inheritence when ever possible

Encapsulation

Make use of  encapsulation!

AS2

For now flamingo is written in as2. So build your code in ActionScript? 2 and don't use ActionScript? 1 constructs.
- Put all your code in AS2 classes.
- Use typed variables whenever possible.
- Do not use deprecated language elements (see Flash Help).

Flash 8

Save your .fla files as flash 8 files.

Comment

Write usefull comment in your code. Add comment to all the functions and classes you have made so its easier to understand.

Flash 8 Coding conventions

In cases not specifically mentioned here, follow the Flash 8 coding conventions, see the Flash  Help.

Consistency

Keep the coding style consistent with the current style when working on existing modules.

Documentation

The documentation is created with tools. These tools only accept comment using a specific format. Look at existing components to see what the format is.