Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Student and Teacher Editions
More products
Solutions
Digital marketing
Digital media
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Buy
Home use for personal and home office
Education for students, educators, and staff
Business for small and medium businesses
Licensing programs for businesses, schools, and government
Special offers
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
My products and services
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out My orders My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / Flash Developer Center / Flash Professional glossary /

Flash glossary: ActionScript

by Adobe

Adobe Flash Professional

Created

25 July 2010

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
ActionScript Flash Professional OOP

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:

  • 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 some older mobile phones and devices.
ActionScript example

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:

  • Learning ActionScript 3
  • ActionScript 3 Developer's Guide
  • ActionScript 3 Language Reference
  • ActionScript Technology Center
  • ActionScript 1:1 with Doug Winnie (video training)

Tool used

  • Actions panel

Related concepts

  • Class
  • Flash Player
  • Frame script
  • JavaScript
  • Keyframe
  • Publish profile
  • Scope
  • Shared object
  • SWF
  • Variable

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License

More Like This

  • Controlling the appearance of text elements with the Text Layout Framework
  • Optimizing content for Apple iOS devices
  • Creating ActionScript 3.0 components in Flash – Part 6: Invalidation model
  • Creating ActionScript 3.0 components in Flash – Part 7: Focus management
  • Creating ActionScript 3.0 components in Flash – Part 8: Keyboard support
  • Using timeline labels to dispatch events with the ActionScript 3.0 TimelineWatcher class
  • Introducing the ActionScript 3.0 debugger
  • Multitouch and gesture support on the Flash Platform
  • Augmented reality with animated avatars using the 3D drawing API
  • Flash glossary: Preloader

Flash User Forum

More
04/23/2012 Auto-Save and Auto-Recovery
04/23/2012 Open hyperlinks in new window/tab/pop-up ?
04/21/2012 PNG transparencies glitched
04/01/2010 Workaround for JSFL shape selection bug?

Flash Cookbooks

More
02/13/2012 Randomize an array
02/11/2012 How to create a Facebook fan page with Flash
02/08/2012 Digital Clock
01/18/2012 Recording webcam video & audio in a flv file on local drive

Products

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile Apps
  • Photoshop
  • Touch Apps
  • Student and Teacher Editions

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • For personal and home office
  • For students, educators, and staff
  • For small and medium businesses
  • For businesses, schools, and government
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy Policy and Cookies (Updated)

Ad Choices

Reviewed by TRUSTe: site privacy statement