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.
Содержание 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 ...