SlideShare a Scribd company logo
ActionScript 
Programming 
Help 
www.myassignmenthelp.net
Introduction 
• ActionScript is an object-oriented programming language 
originally developed by Macromedia Inc. (now owned by 
Adobe Systems). It is a dialect of ECMAScript (meaning it 
is a superset of the syntax and semantics of the language 
more widely known as JavaScript), and is used primarily 
for the development of websites and software targeting the 
Adobe Flash Player platform, used on Web pages in the 
form of embedded SWF files.
Advantages of ActionScript 
• ActionScript goes beyond the scripting capabilities of 
previous versions of ActionScript. It is designed to 
facilitate the creation of highly complex applications 
with large data sets and object oriented, reusable code 
bases. ActionScript is not required for content that runs 
in Adobe Flash Player, it opens the door to performance 
improvements that are only available with the AVM2, 
the new virtual machine.
Objects And Classes 
• In ActionScript, every object is defined by a class. A class can be 
thought of as a template or a blueprint for a type of object. Class 
definitions can include variables and constants, which hold data 
values, and methods, which are functions that encapsulate 
behavior bound to the class. The values stored in properties can 
be primitive values or other objects. Primitive values are 
numbers, strings, or Boolean values. 
• ActionScript contains a number of built-in classes that are part of 
the core language. Some of these built-in classes, such as 
Number, Boolean and String, represent the primitive values 
available in ActionScript. Others, such as the Array, Math, and 
XML classes, define more complex objects.
Variables 
• Variables allow you to store values that use in your 
program. To declare a variable, you must use the 
var statement with the variable name. 
var i; 
To associate a variable with data type you must do so 
when you declare a variable without designating the 
variable’s type is legal, but will generate a compiler 
warning in strict mode. You designate a variable’s 
type by appending the variable name with a colon(;) 
followed by the variable’s type. 
var i:int;
Data types 
• A data type defines a set of value. For example, the Boolean data type is the set 
of exactly two values: true and false. In addition to the Boolean data type, 
ActionScript defines several more commonly used data types, such as String, 
Number and Array. You can define your own data types by using classes or 
interfaces to define a custom set of values. All values in ActionScript 3.0, 
whether they are primitive or complex , are objects. 
• A primitive value is a value that belongs to one of the following data types: 
Boolean, int, Number, String, and uint. Working with primitive values is usually 
faster than working with complex values, because ActionScript stores primitive 
values in a special way that makes memory and speed optimizations possible.
Syntax The syntax of a language defines a set of rules that must be followed when writing executable code. 
• Case sensitivity 
var num1:int; 
var Num1:int; 
Dot syntax 
Slash syntax 
17 
“hello” 
-3 
9.4 
Null 
Undefined 
True 
False
14, to the variable sumNumber . 
Operators 
• Operators are special functions that take one or 
more operands and return a value. An operand is 
a value—usually a literal, a variable, or an 
expression—that an op 
• For example, in the following code, the 
addition(+) and multiplication(*) operators are 
used with three literal operands(2, 3 and 4) to 
return a value. This value is then used by the 
assignment(=) operator to assign the returned 
value, 14, to the variable sumNumber. 
var sumNumber:unit = 2+3*4; // unit=14
Conditionals 
• ActionScript provides three basic 
conditional statements that you can use to 
control program flow. 
• if..else 
If(x>20) 
{ 
Trace(“x is > 20”); 
} 
else 
{ 
Trace(“x is <= 20”); 
}
if..else if 
If (x > 20) 
{ 
trace(“x is > 20”); 
} 
else if (x < 0) 
{ 
trace(“x is negative”); 
}
Switch 
• var dayNum:uint = someDate.getDay(); 
• switch(dayNum) 
• { 
• case 0: 
• trace("Sunday"); 
• break; 
• { 
• case 1: 
• trace(“Monday"); 
• break; 
• { 
• case 2: 
• trace(“Tuesday"); 
• break; 
• default: 
• trace("Out of range"); 
• break; 
• }
Functions 
• Functions are blocks of code that carry out specific tasks and can be reused in 
your program. There are two types of functions in ActionScript 
3.0: methods and function closures . Whether a function is a called a method or a 
function closure depends on the context in which the function is defined. A 
function is called a method if you define it as part of a class definition or attach it 
to an instance of an object. A function is called a function closure if it is defined 
in any other way. 
• Functions have always been extremely important in ActionScript. In ActionScript 
for example, the class keyword did not exist, so “classes” were defined by 
constructor functions.
QUERY 
www.myassignmenthelp.net

More Related Content

ODP
Pattern Matching - at a glance
PPTX
JSpiders - Wrapper classes
PPTX
Java Tutorial Lab 2
PPTX
Java 103 intro to java data structures
PPTX
Java tutorial part 3
PDF
Introducing Pattern Matching in Scala
PPTX
Java Tutorial Lab 3
ODP
C++ arrays part1
Pattern Matching - at a glance
JSpiders - Wrapper classes
Java Tutorial Lab 2
Java 103 intro to java data structures
Java tutorial part 3
Introducing Pattern Matching in Scala
Java Tutorial Lab 3
C++ arrays part1

What's hot (20)

PPTX
Java Tutorial Lab 9
ODP
Knolx Session: Introducing Extractors in Scala
ODP
Knolx Session : Built-In Control Structures in Scala
PPTX
Javascript analysis
PPTX
Templates in c++
PPTX
PPT
Generics collections
PPTX
Java Tutorial Lab 4
PPTX
Machine Learning - Dummy Variable Conversion
PDF
Java Regular Expression PART I
PPT
standard template library(STL) in C++
PDF
Arrays in java
ODP
Functors, Applicatives and Monads In Scala
PPT
Ap Power Point Chpt9
PDF
C Sharp: Basic to Intermediate Part 01
PPT
Generics Collections
PDF
Lecture20 vector
PPTX
Identifiers, keywords and types
PDF
C++ Templates_ Program to Swap Two Numbers Using Function Template - The Craz...
Java Tutorial Lab 9
Knolx Session: Introducing Extractors in Scala
Knolx Session : Built-In Control Structures in Scala
Javascript analysis
Templates in c++
Generics collections
Java Tutorial Lab 4
Machine Learning - Dummy Variable Conversion
Java Regular Expression PART I
standard template library(STL) in C++
Arrays in java
Functors, Applicatives and Monads In Scala
Ap Power Point Chpt9
C Sharp: Basic to Intermediate Part 01
Generics Collections
Lecture20 vector
Identifiers, keywords and types
C++ Templates_ Program to Swap Two Numbers Using Function Template - The Craz...
Ad

Similar to Learn ActionScript programming myassignmenthelp.net (20)

PPT
ActionScript 3.0 Fundamentals
PPTX
Chapter ii(coding)
PDF
Action Script
KEY
Artdm170 Week5 Intro To Flash
PPT
Actionscript
PPTX
Adobe Flash Actionscript language basics chapter-2
PPT
Flex Book Club Chapter 5
KEY
ARTDM 170, Week 5: Intro To Flash
PPT
As Triage Code Camp
PPT
Actionscript 3 - Session 4 Core Concept
PDF
Flash workshop Day Three
PDF
Stuff you didn't know about action script
PDF
Building Flash-based websites using Adobe Flex - Lesson 4/10
PDF
Programming in as3 the basics
PDF
Flash as3 programming
PDF
Adobe action script 3.0 programming
PDF
Adobe action script 3.0 programming
PDF
Actionscript Standards
PDF
Estudios Sociales Y Civica Media 0
ActionScript 3.0 Fundamentals
Chapter ii(coding)
Action Script
Artdm170 Week5 Intro To Flash
Actionscript
Adobe Flash Actionscript language basics chapter-2
Flex Book Club Chapter 5
ARTDM 170, Week 5: Intro To Flash
As Triage Code Camp
Actionscript 3 - Session 4 Core Concept
Flash workshop Day Three
Stuff you didn't know about action script
Building Flash-based websites using Adobe Flex - Lesson 4/10
Programming in as3 the basics
Flash as3 programming
Adobe action script 3.0 programming
Adobe action script 3.0 programming
Actionscript Standards
Estudios Sociales Y Civica Media 0
Ad

More from www.myassignmenthelp.net (20)

PPT
Programming assignment help by myassignmenthelp
PPTX
Artificial intelligence : what it is
PPTX
natural language processing help at myassignmenthelp.net
PPTX
Python assignment help
PDF
Lecture8 classifiers ldc_rules
PPTX
Programming languages
PPTX
Uml assignment help
PPTX
Entity relationship-diagrams
PPTX
Programming assignment-help at myassignmenthelp.net
PPT
Programming assignment help
PPT
Entity relationship diagram for dummies
PPT
How to write effective case study
PPTX
Critical path method example by myassignmenthelp
PPTX
Nursing ppt by myassignmenthelp.net
PPTX
Energy efficiency of qantas by myassignmenthelp
PPTX
Xml programming language myassignmenthelp.net
PPTX
Learn Basics of chemistry myassignmenthelp.net
PPT
Hysys help only at myassignmenthelp.net
PPTX
Materials Flux Analysis @myassignmenthelp.net
PPT
Aspect-Oriented Software Development with Use Cases
Programming assignment help by myassignmenthelp
Artificial intelligence : what it is
natural language processing help at myassignmenthelp.net
Python assignment help
Lecture8 classifiers ldc_rules
Programming languages
Uml assignment help
Entity relationship-diagrams
Programming assignment-help at myassignmenthelp.net
Programming assignment help
Entity relationship diagram for dummies
How to write effective case study
Critical path method example by myassignmenthelp
Nursing ppt by myassignmenthelp.net
Energy efficiency of qantas by myassignmenthelp
Xml programming language myassignmenthelp.net
Learn Basics of chemistry myassignmenthelp.net
Hysys help only at myassignmenthelp.net
Materials Flux Analysis @myassignmenthelp.net
Aspect-Oriented Software Development with Use Cases

Recently uploaded (20)

PDF
Pre independence Education in Inndia.pdf
PDF
Module 3: Health Systems Tutorial Slides S2 2025
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Open Quiz Monsoon Mind Game Prelims.pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
From loneliness to social connection charting
PDF
English Language Teaching from Post-.pdf
PDF
Insiders guide to clinical Medicine.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
DOCX
UPPER GASTRO INTESTINAL DISORDER.docx
PPTX
NOI Hackathon - Summer Edition - GreenThumber.pptx
PDF
Electrolyte Disturbances and Fluid Management A clinical and physiological ap...
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
PSYCHOLOGY IN EDUCATION.pdf ( nice pdf ...)
PPTX
Cardiovascular Pharmacology for pharmacy students.pptx
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Pre independence Education in Inndia.pdf
Module 3: Health Systems Tutorial Slides S2 2025
O7-L3 Supply Chain Operations - ICLT Program
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Open Quiz Monsoon Mind Game Prelims.pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
From loneliness to social connection charting
English Language Teaching from Post-.pdf
Insiders guide to clinical Medicine.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Renaissance Architecture: A Journey from Faith to Humanism
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
UPPER GASTRO INTESTINAL DISORDER.docx
NOI Hackathon - Summer Edition - GreenThumber.pptx
Electrolyte Disturbances and Fluid Management A clinical and physiological ap...
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PSYCHOLOGY IN EDUCATION.pdf ( nice pdf ...)
Cardiovascular Pharmacology for pharmacy students.pptx
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table

Learn ActionScript programming myassignmenthelp.net

  • 1. ActionScript Programming Help www.myassignmenthelp.net
  • 2. Introduction • ActionScript is an object-oriented programming language originally developed by Macromedia Inc. (now owned by Adobe Systems). It is a dialect of ECMAScript (meaning it is a superset of the syntax and semantics of the language more widely known as JavaScript), and is used primarily for the development of websites and software targeting the Adobe Flash Player platform, used on Web pages in the form of embedded SWF files.
  • 3. Advantages of ActionScript • ActionScript goes beyond the scripting capabilities of previous versions of ActionScript. It is designed to facilitate the creation of highly complex applications with large data sets and object oriented, reusable code bases. ActionScript is not required for content that runs in Adobe Flash Player, it opens the door to performance improvements that are only available with the AVM2, the new virtual machine.
  • 4. Objects And Classes • In ActionScript, every object is defined by a class. A class can be thought of as a template or a blueprint for a type of object. Class definitions can include variables and constants, which hold data values, and methods, which are functions that encapsulate behavior bound to the class. The values stored in properties can be primitive values or other objects. Primitive values are numbers, strings, or Boolean values. • ActionScript contains a number of built-in classes that are part of the core language. Some of these built-in classes, such as Number, Boolean and String, represent the primitive values available in ActionScript. Others, such as the Array, Math, and XML classes, define more complex objects.
  • 5. Variables • Variables allow you to store values that use in your program. To declare a variable, you must use the var statement with the variable name. var i; To associate a variable with data type you must do so when you declare a variable without designating the variable’s type is legal, but will generate a compiler warning in strict mode. You designate a variable’s type by appending the variable name with a colon(;) followed by the variable’s type. var i:int;
  • 6. Data types • A data type defines a set of value. For example, the Boolean data type is the set of exactly two values: true and false. In addition to the Boolean data type, ActionScript defines several more commonly used data types, such as String, Number and Array. You can define your own data types by using classes or interfaces to define a custom set of values. All values in ActionScript 3.0, whether they are primitive or complex , are objects. • A primitive value is a value that belongs to one of the following data types: Boolean, int, Number, String, and uint. Working with primitive values is usually faster than working with complex values, because ActionScript stores primitive values in a special way that makes memory and speed optimizations possible.
  • 7. Syntax The syntax of a language defines a set of rules that must be followed when writing executable code. • Case sensitivity var num1:int; var Num1:int; Dot syntax Slash syntax 17 “hello” -3 9.4 Null Undefined True False
  • 8. 14, to the variable sumNumber . Operators • Operators are special functions that take one or more operands and return a value. An operand is a value—usually a literal, a variable, or an expression—that an op • For example, in the following code, the addition(+) and multiplication(*) operators are used with three literal operands(2, 3 and 4) to return a value. This value is then used by the assignment(=) operator to assign the returned value, 14, to the variable sumNumber. var sumNumber:unit = 2+3*4; // unit=14
  • 9. Conditionals • ActionScript provides three basic conditional statements that you can use to control program flow. • if..else If(x>20) { Trace(“x is > 20”); } else { Trace(“x is <= 20”); }
  • 10. if..else if If (x > 20) { trace(“x is > 20”); } else if (x < 0) { trace(“x is negative”); }
  • 11. Switch • var dayNum:uint = someDate.getDay(); • switch(dayNum) • { • case 0: • trace("Sunday"); • break; • { • case 1: • trace(“Monday"); • break; • { • case 2: • trace(“Tuesday"); • break; • default: • trace("Out of range"); • break; • }
  • 12. Functions • Functions are blocks of code that carry out specific tasks and can be reused in your program. There are two types of functions in ActionScript 3.0: methods and function closures . Whether a function is a called a method or a function closure depends on the context in which the function is defined. A function is called a method if you define it as part of a class definition or attach it to an instance of an object. A function is called a function closure if it is defined in any other way. • Functions have always been extremely important in ActionScript. In ActionScript for example, the class keyword did not exist, so “classes” were defined by constructor functions.