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

Chapter 14. Extending ActionScript > Overriding Built-In Methods

Overriding Built-In Methods

We had so much fun earlier writing our own callback functions that I failed to mention that you can also override many of the methods in the built-in objects (such as Array and Movie Clip). It works much the same way as assigning callback functions on the prototype property of homemade classes. The form is still:

Class.prototype.methodName=function(){}


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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