
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
478
Appendix B
APPENDIX B
Differences from ECMAScript
Edition 4
Table B-1 reflects important intentional differences between Flash ActionScript 2.0
and the ECMAScript Edition 4 standard (available at: http://www.mozilla.org/js/
language/es4). At the time of writing, the ECMAScript Edition 4 specification is still
very much under development; hence, additional important differences may not be
listed here, and certainly many minor differences are not listed. Most of ActionScript
2.0’s divergences from the ECMAScript Edition 4 standard are the result of either the
standard’s ongoing volatility or an architectural limitation imposed by the Flash
Player platform. Finally, Table B-1 does not reflect any bugs that may exist in Action-
Script’s implementation of the standard.
Table B-1. Differences between ECMAScript Edition 4 and ActionScript 2.0
Topic Description
Code in class definition block In ActionScript 2.0, class definition blocks can contain only variable and function definitions.
In ECMAScript 4, “A Class Definition’s Block is evaluated just like any other Block, so it can
contain expressions, statements, loops, etc. Such statements that do not contain declara-
tions do not contribute members to the class being declared, but they are evaluated when
the class is declared.”
Nested classes ...