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

Points to remember

In this chapter, we've covered the following:

  • Behaviors are actually Lingo scripts. They can be used prebuilt from the Library Palette, created step by step with the Behavior Inspector, or created line by line with a script editor.

  • Behaviors can be used to hold the playback head on a single frame.

  • A command is that portion of a script that specifies an action.

  • An event (mouseDown, exitFrame, and so on) indicates when a script is to be executed. The Lingo line that specifies that occasion is called an event handler (for example, on mouseDown and on exitFrame).

  • The Lingo scripting language now has two dialects: the more naturalistic old-style syntax and the more modern dot-syntax (which more closely resembles the syntax used by other languages).

  • Behaviors can be used to move the playback head off the linear progression of the Score (as with the Avoid 8 Ball button and the looping script in frame 50).

  • A behavior can control an overall condition independent of the playback status (as with the Sound and Quit buttons).

  • A script can toggle between two conditions, alternately executing one command and then another (as with the Sound button).

  • The script of one Cast member can affect another Cast member (as with the Sound Status text field).

  • Conditionality can be built into a script using the if/then/else construction (as with the script of the Sound button).

  • Before a movie is converted into a stand-alone application, all necessary controls should be integrated into the movie, so that it is self-contained.

  • The Create Projector feature creates a version of your movie that can be played as a self-running application file.

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