There are two camps for developing in Flash. Timeline users make Flash look stunning and dynamic in a few clicks. But to do anything serious, like working with databases, or web services, coding is very much a necessity.

Variable names should make your code ‘self-documenting’. If the purpose of the variable isn’t clear from the name, change the name. Keep variable names short and sweet. And, use single letters for loop variables, like n or x. Try to always set default values for variables to prevent bugs from sneaking in. A good technique for making any developer’s life easier is declaring all variables at the top of your code, or at the top of the block of code being worked in.Didn’t catch that? This explains it.

Functions were created to re-use code. So be sure to use them wisely. If you do any block of code more than once, set-up a function. It is also a good idea to get familiar with object oriented programming. There are circumstances where abstracting your flash into objects can make your code easier to maintain and troubleshoot.

Leveraging these tips will help the readability and conciseness of your project’s code. Don’t forget to check back for more tips and information!

Comments are closed.