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

Chapter 14. Movie Clip Subclasses and Co... > Assigning the MovieClip Superclass

14.3. Assigning the MovieClip Superclass

We've created our Ball class constructor, and we have seen how to instantiate Ball objects with attachMovie( ). Now we have to make our Ball class a subclass of the MovieClip class. As we saw in Chapter 12, we declare a class's superclass like this:

SubClass.prototype = new SuperClass( );


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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