Trace() - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

trace()

Availability
Flash Player 4.
Usage
trace(expression)
Parameters
An expression to evaluate. When a SWF file is opened in the Flash authoring
expression
tool (using the Test Movie command), the value of the
Output panel.
Returns
Nothing.
Description
Statement; evaluates the expression and displays the result in the Output panel in test mode.
Use this statement to record programming notes or to display messages in the Output panel while
testing a SWF file. Use the
display values in the Output panel. The
JavaScript.
You can use the Omit Trace Actions command in the Publish Settings dialog box to remove
actions from the exported SWF file.
trace()
Example
The following example uses a
properties of the dynamically created text field called
this.createTextField("error_txt", this.getNextHighestDepth(), 0, 0, 100, 22);
for (var i in error_txt) {
trace("error_txt."+i+" = "+error_txt[i]);
}
/* output:
error_txt.styleSheet = undefined
error_txt.mouseWheelEnabled = true
error_txt.condenseWhite = false
...
error_txt.maxscroll = 1
error_txt.scroll = 1
*/
982
Chapter 2: ActionScript Language Reference
ActionScript Language Reference
parameter to check whether a condition exists, or to
expression
trace()
statement is similar to the
statement to display in the Output panel the methods and
trace()
parameter is displayed in the
expression
alert
:
error_txt
CHAPTER 2
function in

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents