My Flash Resource – New Ideas and News for Applying Flash to Complex Gaming Apps

Latest News and Developments

April 17, 2008

Flash Tip #3: Always Comment Your Code

by @ 3:09 pm. Filed under Flash Articles, Flash Tips

When developing websites and applications in Flash that have more than a few lines of actionscript it is always a good idea to include comments in your code. This is important so that other project members can understand your code and also so that you can understand your code at a later time. I refer back to my old projects all the time and if I didn’t comment them in the first place the time to understand these old projects would easily be doubled.

There are two ways to comment your code in Flash:

// this is a regular comment.

/*
This is a block comment.
It can be many lines long.
These quote are often useful when debugging because you
can disable big chunks of code while testing other parts.
*/

Comments are closed.

My Flash Resource - A continually growing collection of tutorials, thoughts and interests of a Flash Animator and/or Developer.

categories:

other:

New Feedburner Feed!


Feel free to syndicate.

Learning Material

Flash Resources:


Listed on BlogShares
  • Resources