4.
When a connection is established, a password prompt appears.
Enter your debugging password if you set one.
The display list of the SWF file appears in the Debugger. If the SWF file doesn't play, the
Debugger might be paused, so click Continue to start it.
Displaying and modifying variables
The Variables tab in the Debugger shows the names and values of any global and timeline
variables in the SWF file that are selected in the display list. If you change the value of a
variable on the Variables tab, you can see the change reflected in the SWF file while it runs.
For example, to test collision detection in a game, you can enter the variable value to position
a ball in the correct location next to a wall.
The Locals tab in the Debugger shows the names and values of any local variables that are
available in the line of ActionScript where the SWF file is currently stopped, at a breakpoint
or anywhere else within a user-defined function.
To display a variable:
1.
Select the movie clip containing the variable from the display list.
To display global variables, select the
If necessary, you can resize the various regions of the Debugger panel. When your
changes between each region, you can drag to resize the Display list, Watch list, and
code view.
2.
Click the Variables tab.
716
Debugging Applications
clip in the display list.
_global
Need help?
Do you have a question about the FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH and is the answer not in the manual?