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

Lesson 25. Databases and Lists > Setting Up For This Lesson

Setting Up For This Lesson

Now you are ready to start the project in this lesson. First you'll open the prebuilt file that contains the beginnings of the Nile photo album, and then you'll write a frame script that will pause the playback head.

1.
Open Start1.dir in the Lesson25 folder and save it as Nile.dir in your Projects folder.

2.
Open the Score window (Windows Ctrl+4, Macintosh Command+4).

As you can see, the cast members for the main menu are already on the stage. You will create this movie's action by using Lingo to control the sprites, so the duration of the sprites in the score is relatively unimportant here. The 18-frame duration was chosen here only because it is just long enough to ensure that all the cast member names are fully visible in the score channels.


Figure .


3.
Double-click the behavior channel, frame 18, and create the following script:

on exitFrame
  go to the frame
end

This frame script will pause the playback head at frame 18, and your movie will wait for users to click objects on the screen.

4.
Open the Cast window (Windows Ctrl+3, Macintosh Command+3).

Notice that the Cast window already contains cast member scripts for most of the location names and direction letters. The script icon in the lower-left corner of the cast member tells you this (for example, see cast members 25 and 26). These scripts were created for you to give you a jump-start on the project.


Figure .


5.
Select cast member 25 and then click the Cast Member Script button.

Most of the location names have prebuilt handlers, which call the SetPlace handler when the sprite is clicked on the stage. You will build the SetPlace handler in a later task.


Figure .


6.
Select cast member 30 (North Not glowing) and then click the Script button to open the Script window.

Most of the compass directions have cast member scripts with prebuilt handlers, which call the SetDirection handler when the sprite is clicked on the stage. You will build the SetDirection handler in a later task.


Figure .


Don't play the movie yet. At this point, only part of the movie is complete. If you play the movie and click the location names or a direction, a script error message will appear because the handlers called by the cast member scripts haven't been written. You will write these handlers as part of this project.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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