The
trace() function is accessible from the JavaScript as               window.runtime.trace() (or from                air.trace() if you use the AIRAliases.js file).Global Methods 
| Function | Defined By | ||
|---|---|---|---|
| trace(... arguments):void 
	 Displays expressions, or writes to log files, while debugging. | Top Level | ||
 Function detail 
| trace | () | function | 
 public function trace(... arguments):void| Runtime Versions: | 1.0 | 
	 Displays expressions, or writes to log files, while debugging. A single trace statement can support multiple arguments. If any argument 
	 in a trace statement includes a data type other than a String, the trace function invokes the associated toString() method
	 for that data type. For example, if the argument is a Boolean value the trace function invokes Boolean.toString() and 
	 displays the return value. 
	 
Parameters
| ... arguments— One or more (comma separated) expressions to evaluate. For multiple expressions, a space is inserted between each expression in the output. | 
Example ( How to use this example )
 The following example uses the class 
TraceExample to 
 show how the trace() method can be used to print a simple string.  Generally,
 the message will be printed to a "Debug" console.
<html>
    <head>
      <script src="AIRAliases.js" />
      <script>
        function init() {
            air.trace("Hello World");
        }
      </script>
    </head>
    <body onclick='init()'>
    </body>
</html>
Thu Sep 29 2011, 02:35 AM -07:00
