Adobe 38039481 - Flash CS3 Professional User Manual page 409

User guide
Table of Contents

Advertisement

Display a variable and its value
1
In the Debugger's display list, select the movie clip containing the variable. (To display global variables, select the
clip in the display list.)
_global
Click the Variables tab.
2
The display list updates automatically as the SWF file plays.
Note: If a movie clip is removed from the SWF file at a specific frame, that movie clip, along with its variable and variable
name, is also removed from the display list in the Debugger. However, if its variable is marked for the Watch list, you can
still view it in the Watch tab.
Modify a variable value
On the Debugger panel Variables tab, double-click the value, and enter a new value.
Enter a string (any value surrounded by quotation marks), a number, or a Boolean value (
cannot enter an expression (for example,
Note: To write the value of an expression to the Output panel in the test environment, use the
Use the Watch list
To monitor a set of critical variables, you can mark them for the Watch list. The Watch list shows the absolute path
to the variable and the value. You can also enter a new variable value in the Watch list. The Watch list shows only
variables that you access by using an absolute target path, such as
If you add a local variable to the Watch list, its value appears only when Flash Player stops at a line of ActionScript
that is within the variable's scope. All other variables appear while the SWF file is playing. If the Debugger can't find
the value of the variable, the value is listed as undefined.
Variables marked for the Watch list and variables in the Watch list
Add variables to the Watch list
• On the Variables or Locals tab, right-click (Windows) or Control-click (Macintosh) a selected variable; then select
Watch from the context menu. A blue dot appears next to the variable.
• On the Watch tab, right-click (Windows) or Control-click (Macintosh) and select Add from the context menu.
Double-click in the name column, and enter the target path to the variable name.
or
eval("name:" +i)
x + 2
_global
or
true
).
trace()
or
.
_root
FLASH CS3
403
User Guide
). You
false
statement.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash cs3 professional

Table of Contents