A trace() statement sends specific information to the Output panel. For example, while testing a SWF file, you can send results to the Output panel when a button is pressed or a frame plays. The trace() statement is similar to the JavaScript alert statement.
When you use the trace() statement in a script, you can use expressions as parameters. The value of an expression appears in the Output panel in the test environment.