Chapter 02
Flash ActionScript
Objects and Events
Goals

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 will be 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 will fix that by changing the way it is constructed - from the inside out. The goal is to have an entirely data driven trivia game. Eventually the game will get its data from external servers - but not in this chapter. Here we will convert our Quiz into a data-driven quiz., but that data will be 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.

 

 

 

Nigel Head's JavaScript Code for local cookie manipulation in flash (no server required)