Lingo Examples

These pages have a few examples of lingo, from the course notes for my Interactive Multimedia course. The examples were written in Director 8.5, so are slightly old-fashioned compared to the modern lingo usage and javascript you'll see in more recent books and references; but, they should all still work.

Using the Examples

Most of these examples are just short fragments of lingo code. You should be able to copy and paste them into the script window in Director to try them out. Most will have some sort of instructions, like "Put this in a Behavior Script" or "Put this in a Frame Script". Frame scripts are scripts that go in the score, in the frame script channel above the timeline. Behavior, or Sprite Behavior, scripts should be dragged from the Cast onto a Sprite. Both kinds should have their type set to Behavior in the Property Inspector.

Example Files