Chapter 7. OBJECTS AND CLASSES

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 ...

Get Foundation ActionScript for Flash 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.