• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Summary

The truth is that you can live your whole life without once creating an object. You can also create simply amazing Flash sites without them, too. It’s just that they’re so darn convenient as a way to handle complex data. Plus, you’re about to see how to extend Flash’s object model to override a built-in object’s prototype property. Yes, even the Movie Clip has a prototype object full of methods. Not only can you make your own, but you can re-write Flash commands, such as gotoAndPlay()! The good news is that all the knowledge from this chapter will help you in Chapter 14, “Extending ActionScript.” In the practical example we built, the code structure wouldn’t need to be modified at all if you decided to add thousands of products. (You’d have to instantiate those thousands of items and populate the allProducts array, of course.) The visual representation of data stored in objects is a bit of work—but then objects aren’t supposed to create graphics for you. I see them as a ton of upfront work that pays back only when you can use them repeatedly.

As a quick review:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint