Testing a movie > Using the Output window > Using the trace action |  |

Using the trace action

When you use the `trace` action in a script, you can send information to the Output window. For example, while testing a movie or scene, you can send specific programming notes to the window or have specific results appear when a button is pressed or a frame is played. The `trace` action is similar to the JavaScript `alert` statement.

When you use the `trace` action in a script, you can use expressions as parameters. The value of an expression is displayed in the Output window in test mode, as in the following:

The `trace` action returns values that are displayed in the Output window.

    onClipEvent(enterFrame){
    	trace("onClipEvent enterFrame " + enterFrame++)
    }

Updating the Flash Player for testing

You can download the latest version of the Flash Player from the Macromedia Web site and use it to test your movies in Flash MX with the most recent version of the Flash Player.