What we'll cover in this chapter:
Using objects to describe things with state and behavior
Storing related collections of variables and functions
Creating custom object classes
Working with ActionScript's core built-in objects
We spent much of the last chapter discussing how functions can help give your scripts a nice, clear structure—especially when you choose them wisely and name them sensibly! One of the techniques you looked at dealt with nesting functions. That way, you can break down any complex task into a few slightly simpler subtasks, break down each of those into even simpler sub-subtasks, and so on, until each one reaches a level at which it needs just a few simple actions to do its job. You end up with lots ...