O'Reilly logo

Foundation ActionScript for Flash 8 by David Powers, Sham Bhangal, Kristian Besley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required