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.



Flash and XML[c] A Developer[ap]s Guide
Flash and XML[c] A Developer[ap]s Guide
ISBN: 201729202
EAN: N/A
Year: 2005
Pages: 160

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net