MACROMEDIA DIRECTOR MX-USING DIRECTOR MX Use Manual page 428

Table of Contents

Advertisement

Solving simple problems
When finding a bug, it's a good idea to check for simple problems first.
The first debugging test occurs when you close the Script window. Director gives you an error
message if the script contains incorrect syntax when you close the Script window. The message
usually includes the line in which the problem was first detected. A question mark appears at the
spot in the line where Director first found the problem.
For example, the message "String does not end correctly" tells you that the problem relates to the
string in the line
go to Interact
marker. After thinking about syntax for strings, you'll see that the problem is that no beginning
quotation mark precedes Interact.
Syntax errors are probably the most common bug in Lingo. When a script fails, it is a good idea to
first make sure that:
Terms are spelled correctly, spaces are in the correct places, and necessary punctuation is used.
Lingo can't interpret incorrect syntax.
Quotation marks surround the names of cast members, labels, and strings within
the statement.
All necessary parameters are present. The specific parameters depend on the individual
element. See the Lingo Dictionary to determine any additional parameters an element requires.
If the Script window closes without an error message, the script might contain a bug. If Lingo isn't
doing what you want, check that:
Values for parameters are correct. For example, using an incorrect value for the number of
beeps that you want the
Values that change—such as variables and the content of text cast members—have the values
you want. You can display their values in the Object inspector by selecting the name of the
object and clicking Inspect Object in the Script window, or in the Message window by using
the
command.
put
The Lingo elements do what you think they do. You can check their behavior by referring to
the Lingo Dictionary.
428
Chapter 16
. The only string in this line is Interact, which is the name of a
command to generate gives you the wrong number of beeps.
beep

Advertisement

Table of Contents
loading

This manual is also suitable for:

Director mx

Table of Contents