4 External ActionScript Class Files

ActionScript Class Files

To make full use of ActionScript 2, code needs to be authored in external “.as” files, called “class files”. The “.as” suffix indicates to the flash compiler that the file contains a “class definition”. Classes are the subject of Chapters 5, 6, and 7. This chapter explains the mechanics of creating .as files.

Both the Professional and Basic versions of Flash 8 include a full-featured ActionScript text editor that is used to create ActionScript class files. As discussed earlier, only the Professional version of MX 2004 includes the editor. Since .as files are really just text files, they can be created by any text editing program. Of course it is helpful to use one that knows about ActionScript ...

Get Understanding Macromedia Flash 8 ActionScript 2 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.