Preparing the Movie
We've already created the basic shell of the movie, which is located on the CD-ROM included with this book. (We assumed you could do this yourself, but we did it for you to save you some time.) Begin by taking a few moments to look over the movie. In this lesson you'll finish setting it up so you can begin the primary development.
1. | Open dante_quiz.fla. |
The file is already in your site, in the dante/flash folder.
2. | Review the timeline, stage, and Library. |
Notice that the movie is divided into five sections. If you move the frame indicator, you'll see that the movie is divided into five screens, with one question for each screen. You'll also notice that screens 4 and 5 are completed, both in terms of the interface and the ActionScript attached to Frames 30 and 40 in the actions layer.[View full size image]


3. | Click Frame 1 of the actions layer, and press F9 to open the Actions panel. |
There's no script at this point, but that's about to change.
4. | Type the following code in the Actions panel: /******************* |
As you've probably guessed, everything inside the /* and */ is a comment. Flash ignores comments, but they're useful for readers, including yourself, in the event you forget how a section of code works. You can skip the step of entering the comments if you wish, but documenting your code is an important practice.[View full size image]
