MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 96

Director scripting reference
Table of Contents

Advertisement

Viewing variables in the Debugger window
The Variable pane of the Debugger window displays the variables associated with the current
handler. The current handler is the handler displayed in the Script pane and the last handler
displayed in the Call Stack pane. You can also display the variables associated with previous
handlers in the call stack. As you step through a script, changes to the values of any of the
variables are displayed in red. For more information on stepping through scripts, see
through scripts in the Debugger window" on page
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
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:
Double-click the value of the variable in the Value column.
1
Enter the new value for the variable.
2
Press Enter (Windows) or Return (Macintosh).
3
Viewing objects in the Debugger window
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 scripts.
When the value of an object changes due to the execution of a line of code, 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:
Select the name of the object in the Script pane.
1
Click the Watch Expression button.
2
96
Chapter 4: Debugging Scripts in Director
displays the properties declared by the current script.
97.
"Stepping

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents