25 July 2010
Adobe ActionScript is the scripting language used in Adobe Flash Professional to control playback of SWFs at runtime in Adobe Flash Player. Use ActionScript to make your applications play dynamically in a nonlinear way, and to add interesting or complicated functionality that cannot be added using the Timeline.
Note: Most things that you can do in Flash can be done with or without ActionScript. The things that actually require ActionScript are nonlinear playback and any situation where you choose to avoid using the Timeline.
Using ActionScript, you can add complex interactivity, playback control, and data display to your application. You can add ActionScript in the authoring environment by typing code into the Script pane of the Actions panel. ActionScript follows its own rules of syntax, uses reserved keywords, and supports variables (used to store and retrieve information). ActionScript includes a large library of built‑in classes that you can use to create objects that perform many useful tasks, such as generating random numbers.
When you create a new FLA document, you must choose which version of ActionScript to use. You can change this setting if you decide later to write your scripts using a different version of ActionScript by updating the publish settings.
Flash supports several versions of ActionScript to meet the needs of different kinds of developers and playback hardware:
Different features and file formats may require setting the corresponding version of ActionScript in the publish profile in order to function and render properly.
For more information on coding in ActionScript, see the following resources: