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

Looping on a Frame

One way to keep the playback head from advancing in the score is to create a script that instructs Director to go back to a particular frame. Then every time the playback head arrives in the frame where the script occurs, the playback head will be moved back to the designated frame. The frame the playback head moves to may be the frame in which the script occurs, or it may be any other frame in the score.

Double-click the behavior channel, frame 30. Type go to frame "Priv" below on exitFrame. Then press Enter on the numeric keypad to close the Script window.

Figure .

When you open the Script window, it already displays on exitFrame me and end. The on exitFrame command is the default event for frame scripts. Remember that when you double-click the behavior channel, you create a frame script.

Now when the playback head moves to frame 30, it will stay in that frame because it will keep looping to frame "Priv" (frame 30). You need not worry that the playback head will never travel through frames 31 to 42. No action occurs in those frames, so you can place this frame script anywhere from frame 30 to 42 and still achieve the same effect.

You may have been wondering what the difference is between scripts created by double-clicking the behavior channel and the sprite scripts you've put together in the Behavior Inspector or the cast member scripts you've assigned to cast members. Unlike sprite and cast member scripts, frame scripts don't require user input for activation. You use frame scripts when you want Lingo instructions to be activated when the playback head is within a certain frame. In frame scripts, two events that are commonly specified are on exitFrame and on enterFrame. So far, you have used frame scripts to handle the exitFrame event. You need to add frame scripts in frames 45 and 60 to hold the playback head on the artwork destination screens.

Add a go to frame "Line" script to frame 45in the behavior channel. Then add a go to frame "Res" script to frame 60in the behavior channel.

Now the destination screens will stay on the stage as they should. The remaining destination screens will need the same script to hold the playback head in the frame.

Add scripts that will keep the playback head from moving past the Bio and ? markers when the playback head is in the same frame as the marker.

When you've written all the scripts, you'll see numbers in the script channel. These numbers correspond to the cast member numbers because each script is now a cast member.

Figure .

Save your work. Then rewind and play the movie several times to navigate to each of the destination screens and test your frame scripts.

You've added much more control to the presentation, and now users can choose any menu option and arrive at a destination screen. Watch the playback head as you click the menu options. The playback head stops and waits on these screens because you've inserted frame scripts that loop the playback head—but where can users go from there? These screens contain the white dot navigation controls. You'll set up navigation for them in the next task.

The UserTips destination explains how to navigate through the presentation. Read the information on this page to understand how the original designer supplied some creative ideas in the professionally produced CD of Ann Hamilton's work, the body and the object. You have reproduced some of the effects presented on the CD; now you know how to produce some of the other effects mentioned in the text on this screen.



Not a subscriber?

Start A Free Trial

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