Writing Scripts with Lingo
435
To turn off Autopoll:
•
Select Autopoll from the context menu again
You can set the value of an object or property in the Object inspector by entering a new value in
the box to the right of the object or property name.
To set an object or property value:
1
Double-click the value to the right of the item name.
2
Enter the new value for the item.
3
Press Enter (Windows) or Return (Macintosh). The new value is set and reflected in your
movie immediately.
You can enter a Lingo expression as the value for an item. For example, you might set the value of
sprite(3).locH
to the expression
sprite(8).locH + 20
.
You can also remove items from the Object inspector.
To remove a single item from the Object inspector:
•
Select the item and press the Backspace (Windows) or Delete (Macintosh) key.
To clear the entire contents of the Object inspector:
•
Right-click (Windows) or Control-click (Macintosh) inside the Object inspector and select
Clear All from the context menu.
When you open a separate movie from the one you are working on, the objects you entered in the
Object inspector remain. This makes it easy to compare different versions of the same movie.
When you exit Director, the items in the Object inspector are lost.
Using the Debugger window
The Debugger window is a special mode of the Script window. It provides several tools for finding
the causes of problems in your Lingo scripts. By using the Debugger, you can quickly locate the
parts of your Lingo code that are causing problems. The Debugger window allows you to run
scripts one line at a time, skip over nested handlers, edit the text of scripts, and view the values of
variables and other objects as they change. Learning to use the tools in the Debugger window can
help you become a more efficient Lingo programmer.
The Debugger window can help you locate and correct errors in Lingo scripts. It includes several
tools that let you do the following:
•
See the part of the script that includes the current line of Lingo.
•
Track the sequence of handlers that were called before getting to the current handler.
•
Run selected parts of the current handler.
•
Run selected parts of nested handlers called from the current handler.
•
Display the value of any local variable, global variable, or property related to the Lingo that
you’re investigating.
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...