trace

Displays the specified string within SWF Studio trace window.


Availability:

First available in version 3.5.

Available only in ActionScript 3.


Usage:

trace(message [,color])


Parameters:

message - String - The message you would like to appear in the message box.

color - String - [Optional] - A color in #rrggbb format that will be applied to the text in the trace window to make it easy to find.


Notes:

The color parameter is overridden by filters created in the Trace tab of SWF Studio.

Any message value takes up one line in the trace window. Carriage returns and linefeeds show up as non-printable characters. See the SWF Studio Interface for more information.


Examples:

Example 1:
Send the message "Hello World" to the trace window.

trace("Hello World");