
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
280
|
Chapter 10: Exceptions
From Concepts to Code
We’ve come to the end of Part I and finished our study of ActionScript 2.0 OOP the-
ory. If you’ve read and understood everything up to this point (or at least most of it),
you now have the conceptual foundation required to create object-oriented Flash
applications. From here on out, you simply need to build practical experience on top
of that foundation. Parts II and III of this book will help you do just that. In Part II,
we’ll study application frameworks, visual programming, and code distribution. In
Part III, we’ll explore several widely accepted solutions to specific architectural prob-
lems in object-oriented programming.
for (var i:Number = 0; i < 1000; i++) {
if (!ept.test2( )) {
count2++;
}
}
var elapsed2 = getTimer( ) - start2;
trace(elapsed1); // On my Pentium III 700, displays: 187
trace(elapsed2); // On my Pentium III 700, displays: 57
Example 10-5. Exception handling benchmark test (continued)