The command trace () is used to display something on the output panel. Usage of trace action is very useful in further programming later, as fault testing in a program line. An example of using trace action script as following:
- Click frame 1, then open the action panel and typing the script: trace (1000); then run the movie by pressing CTRL+Enter. It will appear the text "1000" on the output panel.
- Press Ctrl + W to return to the Stage. Next change the action in frame 1 become: trace ("hello how are you?"); Then run movie again. So it will appear in output panel as follows: