Graphics Reference
In-Depth Information
Your code should be optimized not only for performance, but
also for readability and maintenance. As you are writing your
ActionScript, pay attention to what your different functions are
doing. If you have two functions that are doing very nearly the
same thing, consolidate them into one function that can handle
both of your objectives. Another thing I like to suggest is to look
back through your code at certain intervals to make sure you aren
'
t
repeating yourself or that you haven
t
using anymore. In other words, refactoring is good and you should
doit.Rememberthatmakingyourcodebasesmalleroptimizes
your file and your time now and later.
In Chapter 6, I
'
t left any code that you aren
'
ll be talking about some third-party rich-media
companies like Eyeblaster and PointRoll. As you read about them,
you
'
ll learn that one of the benefits in utilizing their technologies is
that you are allowed more file size for your banners. However, that
fact should never keep you from optimizing your work because one
of the overall goals of any project should be an end product with a
file size that
'
'
s as small as it can reasonably be.
Search WWH ::




Custom Search