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

Flash Objects

The trivia game that we will build by the end of this book is complex and sophisticated. It starts, however, with some simple ideas that will be recognizable in each stage of development. Each round of the game is presented in Q&A format: a single Q and multiple choice As. The quizzes are stored in memory as an array of objects.

Predefined Objects

ActionScript comes with several well-defined built-in objects. The XML object will absorb much of our attention. It has methods (like toString()) and properties (like loaded). It also has a constructor, new XML(). This is the method called when the object is created to set up a new instance of the object. A constructor may load default values into variables, position objects, and take arguments that help individualize and define a particular instance. XML, like all provided classes, is also extensible.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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