Home arrow Flash arrow What is ActionScript?

What is ActionScript?

Have you never used ActionScript before, and want to learn? This article will help you get started. Have you used only ActionScript 1.0, and wonder what changed with version 2.0? Keep reading to find out.

Author Info:
By: Adi Reddy Mora
Rating: 4 stars4 stars4 stars4 stars4 stars / 61
March 01, 2005
  1. · What is ActionScript?
  2. · Curly Braces
  3. · Data Types
  4. · Variables
  5. · Debugging changes

print this article

What is ActionScript?
(Page 1 of 5 )

ActionScript is the object-oriented programming (OOP) language you use in your flash movies to add interactivity to your applications, whether it may be a simple animation or a complex enterprise rich internet application. The object-oriented programming (OOP) features in ActionScript 2.0 are based on the ECMAScript 4 Netscape Proposal ( www.mozilla.org/js/language/es4/index.html). Because the ECMA-4 proposal is not yet a standard, and because it is still changing, ActionScript 2.0 does not conform exactly to this specification.

ActionScript Basics


ActionScript has its own rules of grammar and punctuation that determine which characters and words are used to create meaning and in which order they can be written. For example, in English, a period ends a sentence; in ActionScript, a semicolon ends a statement.

var name:String = "Jhon";

The above statement is a variable declaration of string data type.

ActionScript has syntax rules that you must follow to create scripts that can compile and run correctly.

ActionScript 2.0 is case sensitive, so the variables "name" and "Name" are different.

In ActionScript, dot syntax is used ( .) to access properties or methods belonging to an object or movie clip. It is also used to identify the target path to a movie clip, variable, function, or object.

trace( rectangle_mc._width);

The above statement traces the width of the movieclip "rectangle_mc" where "rectangle_mc" is the instance name of the Movieclip.

Note: trace statement is used to output data in the output panel, mainly used for debugging purposes and these statements only execute during authoring.

blog comments powered by Disqus

- More Top Flash Game Tutorials
- Top Flash Game Tutorials
- Best Flash Photo Gallery Tutorials
- The Top Flash Tutorials for Menus
- 7 Great Flash Tutorials
- Adobe Creative Suite 5.5 Now Available
- Critical Flash Vulnerability Heats Up the Web
- More on Nonpersistent Client-Side Remote Sha...
- Nonpersistent Client-Side Remote Shared Obje...
- Using the Decorator Pattern for a Real Web S...
- Using Concrete Decorator Classes
- Delving More Deeply into the Decorator Patte...
- The Decorator Pattern in Action
- A Simple Decorator Pattern Example
- Decorator Pattern

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials