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

Chapter 23. Custom Objects

by Darrel Plant

In this chapter

Why Objects Are Good

Creating an ActionScript Object

Using a Custom Object

Using Object Inheritance

Troubleshooting Custom Objects

Did You Know?

In addition to using the objects built into ActionScript (Date, Movie Clip, Math, and so on), you can create your own types of objects with custom properties and methods.

When you create a custom object type, you're defining how one instance of that object will act in a general way. The actions the object takes will depend on what its initial properties are and what happens to it after it's created.

Custom objects aren't visible on the stage; they're hidden away in the computer's memory, which is perhaps why many people are a little bewildered by their implementation. For a number of reasons, they're handy, so let's learn how to use them.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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