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

Lesson 5. Adding Interactivity > Building a Menu Screen

Building a Menu Screen

In this task, you create a menu with two buttons that allow a user to navigate to a Credits screen or to exit the movie.

1.
Open Start.dir in the Lesson05 folder and save it as TajMah3.dir.

Start.dir is the prebuilt file and is identical to the finished file for the previous lesson. If you completed the previous lesson, you can use the movie you worked on there and save it as TajMah3. dir in your Projects folder.

2.
Drag cast member16 (Menu) from the Cast window to channel 1, frame 131, in the score.

This is the background for the menu screen.


Figure .


When you read the score now, you see that the Menu image will appear on the stage after the digital video finishes playing and the movie pauses for 2 seconds. The 2-second pause is determined by the tempo setting in frame 130. You added the digital video and set the 2-second pause in the tempo channel in the last lesson.


Figure .


3.
Drag cast member 4 (ButtonCr) from the Cast window to channel 2, frame 131, in the score.

This is the Credits button users will click to get to the Credits screen. You'll build the Credits screen in the next task.

4.
Drag cast member 5 (ButtonQt) from the Cast window to channel 3, frame 131.

This is the button users will click to leave the movie.

5.
On the stage, drag the Credits and Quit buttons so they appear side by side at the lower edge of the stage.

Remember that you can use Modify >Align to align sprites as you did in Lesson 2.


Figure .


6.
In the score, select the sprites for the menu image and the two buttons you placed in channels 1, 2, and 3, frame 131, and set their end frames to frame 132.

This changes the duration of the sprites to two frames. This is a good length for sprites used to create a menu in Director since most menus do not include animation, sound, or digital video, which require a larger number of frames. However, now you can't read the sprite labels in the score, which makes it difficult to see what sprites are in those frames.

When you can't read the sprite labels in the score, move the cursor over the sprite and read the data tip. Data tips are the small pop-up panels that display the cast member name and number when the cursor is over a sprite; they're like the tooltips that appear when you rest the cursor on a tool. Data tips come in handy when a sprite's length is too short for the sprite label to appear in the score and you want to know what sprites will appear on the stage without playing the movie.


Figure .


Now that the menu screen has been built, you need to write the Lingo script that will keep it on display when the movie plays. The screen should remain on display so users can click the buttons. Without a script to hold the playback head in place on the screen, the playback head continues to move to other frames you add to the movie.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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