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

Chapter 8. Inheritance > About writing subclasses in Flash

About writing subclasses in Flash

In object-oriented programming, a subclass can inherit the properties and methods of another class, called the superclass. You can extend your own custom classes as well as many of the core and Flash Player ActionScript classes. You cannot extend the TextField class or static classes, such as the Math, Key, and Mouse classes.

To create this kind of relationship between two classes, you use the class statement’s extends clause. To specify a superclass, you use the following syntax:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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