Flash CS4 ActionScript 3.0 Tutorial
How to View a Variable Value at a Specific Point in Flash ActionScript
Tracing is often used as a troubleshooting tool in Flash. By using the trace() statement, you can request a variable's value at a specific point in the script. The value is displayed in Flash's Output panel.
Option double-click (PC - Alt double-click) the first keyframe of a new blank document to open the ActionScript panel.
Copy/Paste the following code to the ActionScript panel.
var totalHere:Number = 1;
Click the Auto Format button to format the code
Test your movie by pressing Cmd/Return (PC - Ctrl/Enter). The Output panel should display 4.