FANDOM


trace(); is a command used in AS2.0 to type text to the debug console. Each trace command used writes a new line in the debugger console.

trace(); is regularly used to test flash based applications. trace(); lines are only shown when testing flash applications in Flash, and not when run in a web browser.

Standard SyntaxEdit

Standard syntax is:

trace("Hello, world");

Example above prints "Hello, world" into the debugger console.

Usage of variables can be:

trace(aVariable);

which would print out the variable "aVariable".

Combining normal text and variables is done like the following:

trace("A variable is: "+aVariable");


See AlsoEdit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.