• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 18. Flash ActionScript and JavaScript > ActionScript and JavaScript

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, take a look at ActionScript f/x and Design (Coriolis, 2000), or dust off the ActionScript manual that accompanies Flash 5. In this chapter, only selected ActionScript elements are explained in any detail; while every attempt is made to provide enough explanation of ActionScript to see how a certain script accomplishes a goal, a little background will help.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint