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

Points to remember

We've covered a lot of ground in this chapter, but here are the most important things to remember:

  • Commands are a class of Lingo elements that imply an action to be taken. They can be self-contained or require additional information (arguments).

  • Keywords are the nouns of Lingo; they are concrete elements.

  • Handlers are executed when an event occurs, but you can write handlers for custom events (like gadzooks in Bingo!) and then write other scripts that trigger those handlers.

  • Prefab Lingo is available in the Script window, with elements grouped both alphabetically and by type of use.

  • A function is a sort of information-retrieval device that returns a report on the current status of something. You can use off-the-shelf Lingo functions or create your own.

  • Arguments are the additional data that a Lingo element needs to operate. If you build a custom function, you need to provide parameters, placeholders for the arguments that will be provided.

  • A property is an aspect of a Director element. It's something that can (in theory) be changed, even if it isn't. Some properties you can set using Lingo; other properties you can only test.

  • Variables are RAM-based storehouses for data. The two most commonly used types are local variables (which exist only in a single handler) and global variables (which can be shared by handlers throughout your movie).

  • Global variables must always be declared with the global keyword before they are used.



Not a subscriber?

Start A Free Trial

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