home support FAQ resources services partners contact us contact us
 Flash MX Previous  Next  
 Tutorial

The Locals tab in the Debugger displays the names and values of any local variables that are available wherever the movie has 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 _global clip in the display list.

2 Click the Variables tab.

The display list updates automatically as the movie plays. If a movie clip is removed from the movie 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 you mark a variable for the Watch list, that variable is not removed.

To modify a variable value:

Double-click the value and enter a new value.

The value cannot be an expression. For example, you can use "Hello", 3523, or "http:// www.macromedia.com", and you cannot use x + 2 or eval("name:" +i). The value can be a string (any value surrounded by quotation marks), a number, or a Boolean value (true or false). Note: To write the value of an expression to the Output window in test mode, use the trace action.

Using the Watch list

To monitor a set of critical variables in a manageable way, you can mark variables to appear in the Watch list. The Watch list displays the absolute path to the variable and the value. You can also enter a new variable value in the Watch list the same way you can in the Variables tab. If you add a local variable to the Watch list, its value appears only when the player is stopped at a line of ActionScript where that variable is in scope. All other variables appear while the movie is playing. If the Debugger can’t find the value of the variable, the value is listed as “Undefined.”
Previous  Next  
Link Partners: Asia florist, Flowers to India, Hong kong flowers, Site submit, Cheap web hosting, China florist, Japan florist