Home > Terms > English (EN) > 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.

0
Collect to Blossary

Member comments

You have to log in to post to discussions.

Terms in the News

Billy Morgan

Sports; Snowboarding

The British snowboarder Billy Morgan has landed the sport’s first ever 1800 quadruple cork. The rider, who represented Great Britain in the 2014 Winter Olympics in Sochi, was in Livigno, Italy, when he achieved the man-oeuvre. It involves flipping four times, while body also spins with five complete rotations on a sideways or downward-facing axis. The trick ...

Marzieh Afkham

Broadcasting & receiving; News

Marzieh Afkham, who is the country’s first foreign ministry spokeswoman, will head a mission in east Asia, the state news agency reported. It is not clear to which country she will be posted as her appointment has yet to be announced officially. Afkham will only be the second female ambassador Iran has had. Under the last shah’s rule, Mehrangiz Dolatshahi, a ...

Weekly Packet

Language; Online services; Slang; Internet

Weekly Packet or "Paquete Semanal" as it is known in Cuba is a term used by Cubans to describe the information that is gathered from the internet outside of Cuba and saved onto hard drives to be transported into Cuba itself. Weekly Packets are then sold to Cuban's without internet access, allowing them to obtain information just days - and sometimes hours - after it ...

Asian Infrastructure Investment Bank (AIIB)

Banking; Investment banking

The Asian Infrastructure Investment Bank (AIIB) is an international financial institution established to address the need in Asia for infrastructure development. According to the Asian Development Bank, Asia needs $800 billion each year for roads, ports, power plants or other infrastructure projects before 2020. Originally proposed by China in 2013, a signing ...

Spartan

Online services; Internet

Spartan is the codename given to the new Microsoft Windows 10 browser that will replace Microsoft Windows Internet Explorer. The new browser will be built from the ground up and disregard any code from the IE platform. It has a new rendering engine that is built to be compatible with how the web is written today. The name Spartan is named after the ...

Featured Terms

anton.chausovskyy
  • 0

    Terms

  • 25

    Blossaries

  • 4

    Followers

Industry/Domain: Entertainment Category:

Jellyfish Fields

A vast area in which jellyfish reside. Over 4,000,000 jellyfish reside here, as evidenced in the episode Jellyfish Hunter. In the episode Born to Be ...

Featured blossaries

The Best Set-Top Box You Can Buy

Category: Technology   1 5 Terms

The first jorney of human into space

Category: History   1 6 Terms

Browers Terms By Category