Home > Terms > English, UK (UE) > ActionScript

ActionScript

ActionScript is the scripting language used to control playback of SWFs at runtime in 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.

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:

  • ActionScript 3 (the most recent version) executes extremely fast and is fully compliant with the ECMAScript specification. It offers better XML processing, an improved event model, and an improved architecture for working with onscreen elements. FLA files that use ActionScript 3 cannot include earlier versions of ActionScript.
  • ActionScript 2 is older and simpler to learn than ActionScript 3. Although Flash Player runs compiled ActionScript 2 code slower than compiled ActionScript 3 code, ActionScript 2 is still useful for many kinds of projects that are not computationally intensive—such as design-oriented content.
  • ActionScript 1 is the simplest form of ActionScript, and is still used by some versions of the Flash Lite player. ActionScript 1 and 2 can coexist in the same FLA file.
  • Flash Lite 2 and Flash Lite 1 are subsets of the corresponding version of ActionScript that are supported on mobile phones and devices.

Different features and file formats may require setting the corresponding version of ActionScript in the publish profile in order to function and render properly.

This is auto-generated content. You can help to improve it.
0
Collect to Blossary

Member comments

You have to log in to post to discussions.

Terms in the News

Featured Terms

Katrin Talan
  • 0

    Terms

  • 0

    Blossaries

  • 0

    Followers

Industry/Domain: Animals Category: Dogs

Bull Terrier

A breed of dog having a short, usually white coat and a tapering muzzle, developed in England by crossing a bulldog with a now extinct breed of ...