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

Chapter 9. The Elements of Scripting > Getting a handle on handlers

Getting a handle on handlers

We've bandied about the term event handler for a while now, and earlier we even wrote a few scripts that incorporated them. But our scripts so far all have a built-in limitation: They can spring to life only when the specified event occurs. And as you know from the previous chapter, Lingo acknowledges only a handful of occurrences as official events.

But event handlers aren't the only type of handlers on the block. You can write custom handlers that carry out any number of commands, and you can give them any names you wish. When you invoke these names in other handler scripts, those custom handlers will be triggered—the act of calling them sets them into motion. Since Lingo is event based by its very structure, the chain of action must be set off by an event handler, but there's no limit to the degree to which handlers can be linked to other handlers.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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