MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 217

Actionscript language reference
Table of Contents

Advertisement

trace()
Availability
Flash Player 4.
Usage
trace(expression)
Parameters
An expression to evaluate.
expression
Returns
Nothing.
Description
You can use Flash Debug Player to capture output from the
output to the log file.
Statement; evaluates the expression and writes the result to the log file.
Use this statement to record programming notes or to write messages in the log file. Use the
parameter to check whether a condition exists, or to write values to the log file.
expression
Example
The following example uses a
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
*/
ActionScript Core Language Elements
statement to write the methods and properties of the
trace()
to the log file:
error_txt
CHAPTER 5
function and write that
trace()
trace()
217

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents