• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Debugging

Hunting down and fixing bugs in your code can be a lot of work. At the time you created the faulty script, you fully intended for it to work, you thought it would work, and you wrote it in a way that made sense to you. Fixing bugs is difficult because it means something you wrote isn't right. If you simply step through your scripts, making the same mistakes over again is easy. Luckily, some Flash features and established techniques are available that should help you with the debugging process.

Old-Fashioned Methods

In addition to the brute-force method of simply stepping through a script, there are two simple ways you can find bugs. Often, you might have a script for a button, Movie Clip, or frame that you really think should work. The first step is to confirm that the script is even being reached. You can place a trace Action in your script to prove the script is being executed. You'll give this method a try in the following task.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint