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

Prototyping an Object

Most of the time when you hear the word “prototype,” it means a first working draft of a project. And in Flash, that can be true as well, but it can also mean the prototype chain.

The prototype chain in Flash starts with the Object object. All other objects are based on this supreme parent object. This means that if you add a property or method to the Object object, all other objects in Flash will then have the ability to use this property or method. But the Object object is already instantiated, so how do you add things to its constructor class after the fact? By using the prototype property.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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