Lesson 19. Testing and Debugging

In computer-driven interactive content, errors in code are referred to as bugsand they can be as ugly and bothersome as their name implies. Although your project is probably not as complex as a major piece of software, you're still likely to discover some glitches. If you don't want to scare off your audience, you'll need to exterminate these bugs.

One of the keys to becoming a Flash master is understanding the need for testing and debugging. It doesn't matter how good your project is: if you don't test and debug it, you're putting your reputation (not to mention your neck) on the line. But testing is about more than simply eliminating mistakes; it's also about optimizing your movie so that it plays back in the most efficient manner. Luckily, the powerful testing tools in Macromedia Flash make this process quick and easy.

The Debugger plays an essential role in finding and eliminating bugs in your projects. This lesson shows you how to use the Debugger.



In this lesson, you will:

  • Learn how to avoid common scripting mistakes

  • Learn how auto-generated messages from Flash can help you locate and squash compile-time bugs

  • Find run-time bugs by using the trace() action

  • Use Flash's built-in Debugger tool

  • Set and use breakpoints to control the execution of scripts in a project

  • Learn how to debug a movie playing in a browser window


This lesson takes approximately 45 minutes to complete.


Starting File:


Completed Project: