next up previous
Next: Multimedia Programming:Tagging (SMIL) Up: Multimedia Programming:Scripting (Lingo) Previous: Director Example 3:Simple Lingo

Director Example 4:Controlling Navigation with Lingo

We begin we a preassembled Director movie:

example2.dcr



Download This Example

We are first going to create a loop the frame script:

Now We will create some markers

As we have mentioned in above Director allows you to mark certain frames in your movie so they can be identified by buttons and links.

Now We will create some sprite scripts:

Sometimes a button will behave one way in one part of the movie and another way in a different part of the movie. That's when we use sprite scripts.

Using the Behaviour Inspector (Fig. 3.20):

Another way to write a sprite script - using the Behaviour Inspector.

You may realise that we now have 2 scripts attached to a single object - a cast member script as well as a sprite script. Sprite scripts take priority over cast member scripts so in our case the cast member script will be ignored.

Using Lingo play/ play do to record actions:

Sometimes you may want only part an image to be linked instead of the whole object. That's when we use invisible buttons. Invisible buttons aren't magical objects, they are just shape cast members with an invisible border.

We used a different command for the above scripts. The play command is similar to the go to command but with play,

You can see the completed example in lingo_ex3.2.dir


next up previous
Next: Multimedia Programming:Tagging (SMIL) Up: Multimedia Programming:Scripting (Lingo) Previous: Director Example 3:Simple Lingo
Dave Marshall
10/4/2001