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

Lesson 17. Handlers And Events

Lesson 17. Handlers And Events

Lingo is a full-featured scripting language designed primarily to respond to events in the Director environment. When a movie plays, Director generates messages for various milestones in the playback process. Just as an actor called onto the stage may work from a script, so too a sprite can work from a script when Director calls it onto the stage or when any significant event occurs.

Practically every action in Director can be scripted to the point at which the score is literally optional. Although most of the examples in this book use the score, it is possible to avoid the score altogether and use Lingo scripts for everything, just by creating scripts to respond to events. Even if you don't want to completely abandon the score, the capability to write scripts to respond to events in the Director environment gives you a powerful, efficient way to add interaction and other features to your Director movies.

Figure . Director issues notifications of nearly every event in a movie. You can intercept these event messages and write handlers to take control of Director, perform common services, encrypt passwords and encode messages, and more—all using Lingo.


In this lesson, you'll learn in detail about the various events that Director can generate, how event handlers work, and how to create your own event handlers using Lingo.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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