ActionScript and JavaScript

To get the most out of this chapter, you will need to know Flash 5 and something about its built-in language, ActionScript. Fortunately, ActionScript is almost identical to JavaScript, especially the newer versions of JavaScript. The main difference between the two is that ActionScript was designed to work with Flash’s timeline and movie clip environment, and JavaScript was designed to work in an HTML environment. The dot syntax is very similar, and most lines require a semicolon at the end. ActionScript follows the same semicolon placement rules that JavaScript does, except that the semicolons are mandatory in ActionScript and optional in JavaScript.

If you are wholly unfamiliar with ActionScript but know Flash, ...

Get JavaScript Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.