10
Chapter 1: ActionScript Basics
Differences between ActionScript and JavaScript
ActionScript is similar to the core JavaScript programming language. You don’t need to know
JavaScript to use and learn ActionScript; however, if you know JavaScript, ActionScript will
seem familiar.
This manual does not attempt to teach general programming. There are many resources that
provide more information about general programming concepts and the JavaScript language.
•
The European Computers Manufacturers Association (ECMA) document ECMA-262 is
derived from JavaScript and serves as the international standard for the JavaScript language.
ActionScript is based on the ECMA-262 specification. For more information, see
www.ecma-
international.org/publications/standards/Ecma-262.htm
.
•
Netscape DevEdge Online has a JavaScript Developer Central site (
http://
developer.netscape.com/tech/javascript/index.html
) that contains documentation and articles
useful for understanding ActionScript. The most valuable resource is the
Core JavaScript Guide.
•
The Java Technology site has tutorials on object-oriented programming (
http://java.sun.com/
docs/books/tutorial/java/index.html
) that are targeted for the Java language but are useful for
understanding concepts that you can apply to ActionScript.
Some of the differences between ActionScript and JavaScript are described in the following list:
•
ActionScript does not support browser-specific objects such as Document, Window,
and Anchor.
•
ActionScript does not completely support all the JavaScript built-in objects.
•
ActionScript does not support some JavaScript syntax constructs, such as statement labels.
•
In ActionScript, the
eval()
function can perform only variable references.
•
ActionScript2.0 supports several features that are not in the ECMA-262 specification, such as
classes and strong typing. Many of these features are modeled after the ECMAScript 4 Draft
Proposal currently in development by ECMA TC39-TG1 (see
www.mozilla.org/js/language/
es4/index.html
), the standards committee in charge of the evolution of the ECMA-262
specification.
•
ActionScript does not support regular expressions using the RegExp object. However,
Macromedia Central does support the RegExp object.
Unicode support for ActionScript
Macromedia Flex supports Unicode text encoding for ActionScript. This means that you can
include text in different languages in an ActionScript file. For example, you can include text in
English, Japanese, and French in the same file. For more information on Unicode support in Flex,
see “Using MXML” in
Developing Flex Applications
.
Summary of Contents for FLEX-FLEX ACTIONSCRIPT LANGUAGE
Page 1: ...Flex ActionScript Language Reference...
Page 8: ......
Page 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0...
Page 76: ......
Page 133: ...break 133 See also for for in do while while switch case continue throw try catch finally...
Page 135: ...case 135 See also break default strict equality switch...
Page 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while...
Page 808: ...808 Chapter 7 ActionScript for Flash...
Page 810: ...810 Appendix A Deprecated Flash 4 operators...
Page 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code...
Page 816: ...816 Appendix B Keyboard Keys and Key Code Values...
Page 822: ...822 Index...