trace() Function in ActionScript
Notes:
trace function in Action Script:
- trace is a global function or global method in action script.
- Global means you can access and use it anywhere in the flash application.
- The responsibility of trace function is to display the given value in the Output window.
- trace function displays the given value and moves the cursor to the Nextline.
Note: Remember trace function always displays the given value on the new fresh line.
- To the trace function we can pass multiple values or list of values separated by commas.
Example Code:
trace("Hello World");
trace("Hello World");
trace("Hello World");
trace("Hello World",255,"Bye World");