Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Part I: ActionScript 3.0 Language Basics > Validating Your Program

Chapter 5. Validating Your Program

No matter how careful you are when writing code, you will almost certainly run into one or two errors. Don't worry; it happens to everyone, including myself every day. Being able to see error messages is a real blessing. Errors are your friends, in a way. Your goal should always be to strive for error-free code, but error messages are the best way to tell when there's something wrong that you may not have noticed. Think of it like a spell-checker. Compiling and running your code and checking for errors frequently is the best way to catch problems before they multiply.

Flash Player has not only a robust system for handling errors but support for interactive debuggers, both of while I'll cover in detail in Part V, "Error Handling." However, since you should be starting to play with the example code that you'll see more and more of, it's a good time to stop and talk about some of the kinds of bugs you're likely to run into and what to do about them.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial