moock.org is supported in part by


April 02, 2007

Chapter 13, Paragraphs 1&2, Essential ActionScript 3.0

Here are the first two paragraphs of Chapter 13 of Essential ActionScript 3.0

13. Exceptions and Error Handling

In this chapter, we’ll explore ActionScript’s system for generating and responding to runtime errors—or exceptions. In ActionScript, errors can be generated both by the Flash runtime and by the program that is executing. Errors generated by the Flash runtime are known as built-in errors; errors generated by a program are known as custom errors. In a program, we can respond to, or handle, any error (whether built-in or custom) using the try/catch/finally statement; we can generate an error via the throw statement.

To learn how to generate and respond to errors in a program, we’ll revisit our virtual zoo program.

Posted by moock at April 2, 2007 08:36 PM