Writing Scripts with Lingo
439
To organize objects in the Watcher pane, do one of the following:
•
To sort the objects in the Watcher pane, click the Name column head at the top of the left
column. The object names in the column are listed in alphabetical order.
•
To sort the objects in reverse-alphabetical order, click the Name column head a second time.
•
To organize objects into groups, use the tabs in the Watcher pane. To add an object to a
specific tab, click the tab you want to use before adding the object.
•
To clear the contents of a tab in the Watcher pane, select the tab and then right-click
(Windows) or Control-click (Macintosh) in the Watcher pane and select Clear All.
Stepping through scripts
The Debugger window provides you with a set of tools for running scripts slowly, so you can
watch the effect that each line of Lingo has on your movie. You can execute one line of Lingo at a
time and choose whether to execute nested handlers one line at a time or all at once.
To execute only the current line of Lingo indicated by the green arrow:
•
Click the Step Script button.
Many handlers include calling statements to other handlers. You can focus your attention on such
nested handlers, or ignore them and focus on Lingo in the current handler.
When you are confident that nested handlers are performing as expected and want to concentrate
on Lingo in the current handler, the Debugger window can step over nested handlers and go
directly to the next line of Lingo in the current handler. When the Debugger steps over a
nested handler, it executes the handler, but does not display the handler’s code or pause within
the nested handler.
To step over nested handlers:
•
Click the Step Script button in the Debugger window.
The Step Script button runs the current line of Lingo, runs any nested handlers that the line
calls, and then stops at the next line in the handler.
If you suspect that nested handlers aren’t performing as expected and want to study their behavior,
the Debugger window can run nested handlers line-by-line as well.
To run nested handlers one line at a time:
•
Click the Step Into Script button in the Debugger window.
Clicking the Step Into button runs the current line of Lingo and follows the normal Lingo flow
through any nested handlers called by that line. When finished with a nested handler, the
Debugger window stops at the next line of Lingo within the upper-level handler.
When you are finished debugging, you can exit the Debugger at any time:
•
To resume normal execution of Lingo and exit the Debugger window, click the Run Script
button.
•
To exit the Debugger and stop playback of the movie, click the Stop Debugging button.
Summary of Contents for DIRECTOR MX-USING DIRECTOR MX
Page 1: ...Using Director MX Macromedia Director MX...
Page 12: ...Contents 12...
Page 156: ...Chapter 4 156...
Page 202: ...Chapter 6 202...
Page 244: ...Chapter 7 244...
Page 292: ...Chapter 10 292...
Page 330: ...Chapter 12 330...
Page 356: ...Chapter 13 356...
Page 372: ...Chapter 14 372...
Page 442: ...Chapter 16 442...
Page 472: ...Chapter 18 472...
Page 520: ...Chapter 19 520...
Page 536: ...Chapter 20 536...
Page 562: ...Chapter 23 562...
Page 566: ...Chapter 24 566...
Page 602: ...Chapter 27 602...