• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. Customizing Objects > REGISTERING CLASSES

REGISTERING CLASSES

One of the most exciting enhancements to ActionScript in Flash MX is the ability to easily create subclasses of movie clips. You can now create a custom class (as described earlier in this lesson); use movie clip event handlers, custom methods and more to add functionality to that class; and then associate one or more movie clip symbols in the library with that class so that every instance of that symbol automatically inherits the functionality of the custom class. Although this may seem like a complex concept (since it’s so powerful), it’s actually quite simple. Let’s take a look at an example. To begin with, assume there are a couple of symbols in the library with Linkage identifier names of clipOne and clipTwo.

NOTE

It’s important to note that in the following text, when we refer to a movie clip or clip, we’re talking about the master clip in the library. Movie clip instance or simply instance refer to, well, instances of the clip.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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