SlideShare una empresa de Scribd logo
1 de 13
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

Más contenido relacionado

La actualidad más candente

Java Tutorial Lab 9
Java Tutorial Lab 9Java Tutorial Lab 9
Java Tutorial Lab 9Berk Soysal
 
Knolx Session: Introducing Extractors in Scala
Knolx Session: Introducing Extractors in ScalaKnolx Session: Introducing Extractors in Scala
Knolx Session: Introducing Extractors in ScalaAyush Mishra
 
Knolx Session : Built-In Control Structures in Scala
Knolx Session : Built-In Control Structures in ScalaKnolx Session : Built-In Control Structures in Scala
Knolx Session : Built-In Control Structures in ScalaAyush Mishra
 
Java Tutorial Lab 4
Java Tutorial Lab 4Java Tutorial Lab 4
Java Tutorial Lab 4Berk Soysal
 
Machine Learning - Dummy Variable Conversion
Machine Learning - Dummy Variable ConversionMachine Learning - Dummy Variable Conversion
Machine Learning - Dummy Variable ConversionAndrew Ferlitsch
 
standard template library(STL) in C++
standard template library(STL) in C++standard template library(STL) in C++
standard template library(STL) in C++•sreejith •sree
 
Functors, Applicatives and Monads In Scala
Functors, Applicatives and Monads In ScalaFunctors, Applicatives and Monads In Scala
Functors, Applicatives and Monads In ScalaKnoldus Inc.
 
Ap Power Point Chpt9
Ap Power Point Chpt9Ap Power Point Chpt9
Ap Power Point Chpt9dplunkett
 
C Sharp: Basic to Intermediate Part 01
C Sharp: Basic to Intermediate Part 01C Sharp: Basic to Intermediate Part 01
C Sharp: Basic to Intermediate Part 01Zafor Iqbal
 
Generics Collections
Generics CollectionsGenerics Collections
Generics Collectionsphanleson
 
Lecture20 vector
Lecture20 vectorLecture20 vector
Lecture20 vectornurkhaledah
 
Identifiers, keywords and types
Identifiers, keywords and typesIdentifiers, keywords and types
Identifiers, keywords and typesDaman Toor
 
C++ Templates_ Program to Swap Two Numbers Using Function Template - The Craz...
C++ Templates_ Program to Swap Two Numbers Using Function Template - The Craz...C++ Templates_ Program to Swap Two Numbers Using Function Template - The Craz...
C++ Templates_ Program to Swap Two Numbers Using Function Template - The Craz...Rishikesh Agrawani
 

La actualidad más candente (20)

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

Similar a Learn ActionScript programming myassignmenthelp.net

data-types-operators-datatypes-operators.ppt
data-types-operators-datatypes-operators.pptdata-types-operators-datatypes-operators.ppt
data-types-operators-datatypes-operators.pptGagan Rana
 
javascript
javascript javascript
javascript Kaya Ota
 
Standardizing on a single N-dimensional array API for Python
Standardizing on a single N-dimensional array API for PythonStandardizing on a single N-dimensional array API for Python
Standardizing on a single N-dimensional array API for PythonRalf Gommers
 
Scala Talk at FOSDEM 2009
Scala Talk at FOSDEM 2009Scala Talk at FOSDEM 2009
Scala Talk at FOSDEM 2009Martin Odersky
 
Fundamental classes in java
Fundamental classes in javaFundamental classes in java
Fundamental classes in javaGaruda Trainings
 
AJS UNIT-1 2021-converted.pdf
AJS UNIT-1 2021-converted.pdfAJS UNIT-1 2021-converted.pdf
AJS UNIT-1 2021-converted.pdfSreeVani74
 
Unit 2 Principles of Programming Languages
Unit 2 Principles of Programming LanguagesUnit 2 Principles of Programming Languages
Unit 2 Principles of Programming LanguagesVasavi College of Engg
 
Taxonomy of Scala
Taxonomy of ScalaTaxonomy of Scala
Taxonomy of Scalashinolajla
 
The Uniform Access Principle
The Uniform Access PrincipleThe Uniform Access Principle
The Uniform Access PrinciplePhilip Schwarz
 
E learning excel vba programming lesson 3
E learning excel vba programming  lesson 3E learning excel vba programming  lesson 3
E learning excel vba programming lesson 3Vijay Perepa
 

Similar a Learn ActionScript programming myassignmenthelp.net (20)

chap04.ppt
chap04.pptchap04.ppt
chap04.ppt
 
Typescript
TypescriptTypescript
Typescript
 
data-types-operators-datatypes-operators.ppt
data-types-operators-datatypes-operators.pptdata-types-operators-datatypes-operators.ppt
data-types-operators-datatypes-operators.ppt
 
Java
JavaJava
Java
 
Java 8 lambda
Java 8 lambdaJava 8 lambda
Java 8 lambda
 
Unit 1
Unit  1Unit  1
Unit 1
 
javascript
javascript javascript
javascript
 
Objective c slide I
Objective c slide IObjective c slide I
Objective c slide I
 
Standardizing on a single N-dimensional array API for Python
Standardizing on a single N-dimensional array API for PythonStandardizing on a single N-dimensional array API for Python
Standardizing on a single N-dimensional array API for Python
 
Generic Programming
Generic ProgrammingGeneric Programming
Generic Programming
 
Scala Talk at FOSDEM 2009
Scala Talk at FOSDEM 2009Scala Talk at FOSDEM 2009
Scala Talk at FOSDEM 2009
 
Fundamental classes in java
Fundamental classes in javaFundamental classes in java
Fundamental classes in java
 
AJS UNIT-1 2021-converted.pdf
AJS UNIT-1 2021-converted.pdfAJS UNIT-1 2021-converted.pdf
AJS UNIT-1 2021-converted.pdf
 
Unit 2 Principles of Programming Languages
Unit 2 Principles of Programming LanguagesUnit 2 Principles of Programming Languages
Unit 2 Principles of Programming Languages
 
Intro to Scala
 Intro to Scala Intro to Scala
Intro to Scala
 
Taxonomy of Scala
Taxonomy of ScalaTaxonomy of Scala
Taxonomy of Scala
 
The Uniform Access Principle
The Uniform Access PrincipleThe Uniform Access Principle
The Uniform Access Principle
 
E learning excel vba programming lesson 3
E learning excel vba programming  lesson 3E learning excel vba programming  lesson 3
E learning excel vba programming lesson 3
 
Apex code (Salesforce)
Apex code (Salesforce)Apex code (Salesforce)
Apex code (Salesforce)
 
Bound and Checked
Bound and CheckedBound and Checked
Bound and Checked
 

Más de www.myassignmenthelp.net

Programming assignment help by myassignmenthelp
Programming assignment help by myassignmenthelpProgramming assignment help by myassignmenthelp
Programming assignment help by myassignmenthelpwww.myassignmenthelp.net
 
natural language processing help at myassignmenthelp.net
natural language processing  help at myassignmenthelp.netnatural language processing  help at myassignmenthelp.net
natural language processing help at myassignmenthelp.netwww.myassignmenthelp.net
 
Programming assignment-help at myassignmenthelp.net
Programming assignment-help at myassignmenthelp.netProgramming assignment-help at myassignmenthelp.net
Programming assignment-help at myassignmenthelp.netwww.myassignmenthelp.net
 
Critical path method example by myassignmenthelp
Critical path method example by myassignmenthelpCritical path method example by myassignmenthelp
Critical path method example by myassignmenthelpwww.myassignmenthelp.net
 
Energy efficiency of qantas by myassignmenthelp
Energy efficiency of qantas by myassignmenthelpEnergy efficiency of qantas by myassignmenthelp
Energy efficiency of qantas by myassignmenthelpwww.myassignmenthelp.net
 
Xml programming language myassignmenthelp.net
Xml programming  language myassignmenthelp.netXml programming  language myassignmenthelp.net
Xml programming language myassignmenthelp.netwww.myassignmenthelp.net
 
Learn Basics of chemistry myassignmenthelp.net
Learn Basics of chemistry myassignmenthelp.netLearn Basics of chemistry myassignmenthelp.net
Learn Basics of chemistry myassignmenthelp.netwww.myassignmenthelp.net
 
Materials Flux Analysis @myassignmenthelp.net
Materials Flux Analysis  @myassignmenthelp.netMaterials Flux Analysis  @myassignmenthelp.net
Materials Flux Analysis @myassignmenthelp.netwww.myassignmenthelp.net
 
Aspect-Oriented Software Development with Use Cases
Aspect-Oriented Software Development with Use CasesAspect-Oriented Software Development with Use Cases
Aspect-Oriented Software Development with Use Caseswww.myassignmenthelp.net
 

Más de www.myassignmenthelp.net (20)

Programming assignment help by myassignmenthelp
Programming assignment help by myassignmenthelpProgramming assignment help by myassignmenthelp
Programming assignment help by myassignmenthelp
 
Artificial intelligence : what it is
Artificial intelligence : what it isArtificial intelligence : what it is
Artificial intelligence : what it is
 
natural language processing help at myassignmenthelp.net
natural language processing  help at myassignmenthelp.netnatural language processing  help at myassignmenthelp.net
natural language processing help at myassignmenthelp.net
 
Python assignment help
Python assignment helpPython assignment help
Python assignment help
 
Lecture8 classifiers ldc_rules
Lecture8 classifiers ldc_rulesLecture8 classifiers ldc_rules
Lecture8 classifiers ldc_rules
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Uml assignment help
Uml assignment helpUml assignment help
Uml assignment help
 
Entity relationship-diagrams
Entity relationship-diagramsEntity relationship-diagrams
Entity relationship-diagrams
 
Programming assignment-help at myassignmenthelp.net
Programming assignment-help at myassignmenthelp.netProgramming assignment-help at myassignmenthelp.net
Programming assignment-help at myassignmenthelp.net
 
Programming assignment help
Programming assignment helpProgramming assignment help
Programming assignment help
 
Entity relationship diagram for dummies
Entity relationship diagram for dummiesEntity relationship diagram for dummies
Entity relationship diagram for dummies
 
How to write effective case study
How to write effective case studyHow to write effective case study
How to write effective case study
 
Critical path method example by myassignmenthelp
Critical path method example by myassignmenthelpCritical path method example by myassignmenthelp
Critical path method example by myassignmenthelp
 
Nursing ppt by myassignmenthelp.net
Nursing ppt by myassignmenthelp.netNursing ppt by myassignmenthelp.net
Nursing ppt by myassignmenthelp.net
 
Energy efficiency of qantas by myassignmenthelp
Energy efficiency of qantas by myassignmenthelpEnergy efficiency of qantas by myassignmenthelp
Energy efficiency of qantas by myassignmenthelp
 
Xml programming language myassignmenthelp.net
Xml programming  language myassignmenthelp.netXml programming  language myassignmenthelp.net
Xml programming language myassignmenthelp.net
 
Learn Basics of chemistry myassignmenthelp.net
Learn Basics of chemistry myassignmenthelp.netLearn Basics of chemistry myassignmenthelp.net
Learn Basics of chemistry myassignmenthelp.net
 
Hysys help only at myassignmenthelp.net
Hysys help only at myassignmenthelp.netHysys help only at myassignmenthelp.net
Hysys help only at myassignmenthelp.net
 
Materials Flux Analysis @myassignmenthelp.net
Materials Flux Analysis  @myassignmenthelp.netMaterials Flux Analysis  @myassignmenthelp.net
Materials Flux Analysis @myassignmenthelp.net
 
Aspect-Oriented Software Development with Use Cases
Aspect-Oriented Software Development with Use CasesAspect-Oriented Software Development with Use Cases
Aspect-Oriented Software Development with Use Cases
 

Último

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 

Último (20)

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 

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.