1.Basic Concepts About ActionScript
ActionScript 2.0 is not a new language. Rather, it comprises a core set of language elements that make it easier to develop object-oriented programs. With the introduction of keywords such as class , interface , extends , and implements , ActionScript syntax is now easier to learn for programmers familiar with other languages. New programmers can learn more standard terminology that they can apply to other object-oriented languages they may study in the future.
ActionScript 2.0 supports all the standard elements of the ActionScript language; it simply enables you to write scripts that more closely adhere to standards used in other object-oriented languages, such as Java. ActionScript 2.0 should be of interest primarily to intermediate or advanced Flash developers who are building applications that require the implementation of classes and subclasses. ActionScript 2.0 also lets you declare the object type of a variable when you create it and provides significantly improved compiler errors.
![]()
![]()
You can use one of two methods to write ActionScript code in Cool Motion. You can write scripts that are part of your Cool Motion document (that is, scripts that are embedded in the fmp file), or you can write external scripts (scripts or classes that are stored in external files). You cannot use the the Actions panel to write external scripts.
When you need to create an external script, you use the ActionScript editor in the Script Editing window to create a new ActionScript file. (You can also use your favorite text editor to create an external AS file.) In the Script Editing window, the ActionScript editor includes code-assistance features like code hinting and coloring, syntax checking, and so on just like the Actions panel.
