Chapter 16
438
To display the variables associated with a handler in the call stack:
•
Click the name of the handler in the Call Stack pane. The variables appear in the
Variable pane.
The Variable pane includes four tabs for viewing variables:
The All tab
displays both global and local variables associated with the current handler.
The Local tab
displays only the local variables associated with the selected handler.
The Property tab
displays the properties declared by the current script.
The Global tab
displays only the global variables associated with the selected handler.
You can sort the variables in the Variable pane:
•
To sort the variables by name, click the word “Name” that appears above the variable names.
•
To sort the variables in reverse-alphabetical order, click the word “Name” a second time.
You can change the values of local variables of the current handler and global variables in the
Variable pane. You cannot change the value of local variables that are not in the current handler.
To change the value of a variable in the Variable pane:
1
Double-click the value of the variable in the Value column.
2
Enter the new value for the variable.
3
Press Enter (Window) or Return (Macintosh).
Viewing objects in the Watcher pane
With the Watcher pane in the Debugger window, you can view variables and other data objects
associated with the current handler, as well as objects associated with other handlers. By adding
objects to the Watcher pane, you can keep track of their values as they change because of Lingo
scripts. When the value of an object changes due to the execution of a line of Lingo, Director
changes the color of the object’s name in the Watcher pane to red.
The Watcher pane displays only the objects you add to it. You can use up to four separate tabs in
the Watcher pane to organize objects into groups.
To add an object to the Watcher pane whose name appears in the Script pane:
1
Select the name of the object in the Script pane.
2
Click the Watch Expression button.
To add an object to the Watcher pane whose name does not appear in the Script pane:
1
Double-click the first empty cell in the object column of the Watcher pane.
2
Type the name of the object in the cell and press Enter (Windows) or Return (Macintosh).
If the object has properties, a plus sign (+) appears next to the object’s name.
To display an object’s properties:
•
Click the plus sign next to the object name.
The Watcher pane lets you organize objects in a few ways.
Содержание 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 ...