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

Chapter 2. Flash ActionScript: Objects and Events

Chapter 2. Flash ActionScript: Objects and Events

This chapter promotes our understanding of Flash to include advanced ActionScripting. We will study data structures in memory and the dynamic creation and destruction of graphic elements. The basics of object-oriented programming are covered.

We start by covering the basics of object orientation. Then we use that knowledge in reforming our quiz. The quiz round we built in the previous chapter is functional but inflexible. We fix that by changing the way it is constructed, from the inside out. The goal is an entirely data-driven trivia game. Eventually the game will get its data from external servers—but not in this chapter. Here we convert our quiz into a data-driven quiz, but the data is hard coded internally in the Flash file itself.

This chapter is intended for those who are still learning Flash ActionScript. It teaches practical issues of execution control, data access, and a quick shower of syntax. It is not meant to be comprehensive coverage of ActionScript, but it will take an attentive novice from a dead stop to functional scripter in a dozen pages.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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