SlideShare a Scribd company logo
PROGRAMMING SCRIPTING Action Script 2.0
ACTION SCRIPT 2.0 Merupakan bahasa pengaturcaraan berasaskan objek (objek oriented programming) Ianya boleh dibina/dibentuk sendiri selain menggunakan Action Sript yang sedia ada Ia digunakan kepada ‘objek’ iaitu: ,[object Object]
Grafik
Button	,[object Object]
Pelbagai jenis animasi dapat dihasilkan dengan pengunaan ActionScript. Pengunaan ActionScript tidak melibatkan banyak pengunaan grafik. Apa yang dilakukan di sini ialah memaklumkan tindakan (Action) yang perlu dilaksanakan bagi sesuatu peristiwa (event) itu berlaku. ActionScript membenarkan pengguna untuk mereka movie interaktif yang dimainkan dalam turutan nonlinear dan respon terhadap input pengguna daripada keyboard atau mouse.
Mengapa Perlu Belajar ActionScript? Selain mengetahui kod disebalik Flash, ActionScript juga berguna di dalam membangunkan aplikasi interaktif tambahan terhadap movie yang dibina atau menggerakkan objek dari satu kedudukan ke kedudukan lain.
Bagaimana Menulis ActionScript? Menulis ActionScript adalah tidak lain daripada menulis arahan. Setiap arahan yang dimasukkan memaklumkan kepada Flash untuk melakukan sesuatu secara spesifik. Contohnya, “play”, “stop”, “or” dan sebagainya. Dengan menentukan arahan bagi setiap baris ActionScript secara spesifik, membenarkan pengguna mencantumkan dan menghasilkan arahan yang lebih baik. Tetapi  harus di ingati bahawa setiap “sentence”( baris kod) merupakan arahan yang tunggal.
ActionScript berasaskan masaialah apabila arahan actionscript dimasukkan pada frame. Action yang diarahkan akan dimainkan apabila playhead sampai pada frame yang mengandungi action. ActionScript berasaskan penggunaberlaku apabila butang action mengandungi arahan actionscript . Action yang diarahkan pada butang dimainkan apabila pengguna memberi input, biasanya dalam bentuk mouse event
Action Toolboxmengandungi action atau script yang telah sedia ada dalam Flash Script Pane memaparkan turutan action yang dimasukkan  Script Navigatormemaparkan semua script dalam movie pada scene & timeline ,[object Object],[object Object]
11 gotoAndPlay This frame action sends the playhead to the specified frame in a scene and plays from that frame. If no scene is specified, the playhead goes to the specified frame in the current scene.
12 Functions Perform a specific task Like in a spreadsheet program (Excel)
13 getVersion Returns the Flash Player version number and operating system information.  You can use this function to determine whether the Flash Player that is in use can handle your Actionscript.
14 Properties All available information about an object You can use ActionScript to read and modify object properties All property names begin with an underscore (e.g., _visible)
15 _visible = false This property make an object invisible Assign the following action to a button… On (release) { 	_visible = false; } Button disappears on mouse click
16 Method Similar to actions in that they effect objects Built into objects  Invoked (Executed) through dot notation
17 RocketMC.gotoAndPlay(“BlastOff”); ActionScript notation must end in ; Movie clip Rocket MC goes to a frame labeled BlastOff and plays
18 Variables hold data for use in your Flash movies Variables can hold any type of data You could store: User name Result of calculation True or false value
19 Expressions An expression is any statement that Flash can evaluate and that returns a value.  You can create an expression by combining operators and values or by calling a function.
20 Operators Expressions use operators to tell Flash how to manipulate the values in the expression. They are the commands that say “add these values” or “multiply these numbers”
21 Some types of operators Assignment:  are used to assign values to variables.  The most common is (=). It makes the variable on the left equal to the value of the variable or expression on the right. Comparison and equivalence:  (<), (>), (< =) Numeric:  perform mathematical operations on values
22 Looping When you need to repeat certain actions in your movies more than once. Makes coding more efficient, using the same set of commands as many times as necessary to complete a task.
23 Looping examples while Creates a loop that continues to repeat as long as a condition remains true for Creates a loop that executes a specific number of times using a counter for…in Creates a loop that executes once for each member of a group of objects (class) This makes certain that the entire group of objects is processed in the same way
24 Hints Before you begin writing scripts, formulate your goal and understand what you want to achieve.  Planning your scripts is as important as developing storyboards for your work.  Start by writing out what you want to happen in the movie, as in this example:  I want to create my whole site using Flash.  Site visitors will be asked for their name, which will be reused in messages throughout the site.  The site will have a draggable navigation bar with buttons that link to each section of the site.  When a navigation button is clicked, the new section will fade in at the center of the Stage.  One scene will have a contact form with the user's name already filled in.

More Related Content

Similar to Programming scripting

Android animation in android-chapter17
Android animation in android-chapter17Android animation in android-chapter17
Android animation in android-chapter17
Dr. Ramkumar Lakshminarayanan
 
How tomakea gameinunity3d
How tomakea gameinunity3dHow tomakea gameinunity3d
How tomakea gameinunity3d
Dao Tung
 
Unity - Essentials of Programming in Unity
Unity - Essentials of Programming in UnityUnity - Essentials of Programming in Unity
Unity - Essentials of Programming in Unity
NexusEdgesupport
 
Dynamic Graph Plotting with WPF
Dynamic Graph Plotting with WPFDynamic Graph Plotting with WPF
Dynamic Graph Plotting with WPF
IJERD Editor
 
WPF - the future of GUI is near
WPF - the future of GUI is nearWPF - the future of GUI is near
WPF - the future of GUI is near
Bartlomiej Filipek
 
Getting started with Verold and Three.js
Getting started with Verold and Three.jsGetting started with Verold and Three.js
Getting started with Verold and Three.jsVerold
 
WP7 HUB_Introducción a Silverlight
WP7 HUB_Introducción a SilverlightWP7 HUB_Introducción a Silverlight
WP7 HUB_Introducción a Silverlight
MICTT Palma
 
2%20-%20Scripting%20Tutorial
2%20-%20Scripting%20Tutorial2%20-%20Scripting%20Tutorial
2%20-%20Scripting%20Tutorialtutorialsruby
 
2%20-%20Scripting%20Tutorial
2%20-%20Scripting%20Tutorial2%20-%20Scripting%20Tutorial
2%20-%20Scripting%20Tutorialtutorialsruby
 
Unity3d scripting tutorial
Unity3d scripting tutorialUnity3d scripting tutorial
Unity3d scripting tutorial
hungnttg
 
Angular 16 – the rise of Signals
Angular 16 – the rise of SignalsAngular 16 – the rise of Signals
Angular 16 – the rise of Signals
Coding Academy
 
27 - Panorama Necto 14 component mode & java script - visualization & data di...
27 - Panorama Necto 14 component mode & java script - visualization & data di...27 - Panorama Necto 14 component mode & java script - visualization & data di...
27 - Panorama Necto 14 component mode & java script - visualization & data di...
Panorama Software
 
mvcExpress training course : part1
mvcExpress training course : part1mvcExpress training course : part1
mvcExpress training course : part1
Raimundas Banevičius
 
Android Development with Flash Builder Burrito
Android Development with Flash Builder BurritoAndroid Development with Flash Builder Burrito
Android Development with Flash Builder Burrito
Jeff Bollinger
 
React Native custom components
React Native custom componentsReact Native custom components
React Native custom components
Jeremy Grancher
 
Actionscript 3 - Session 2 Getting Started Flash IDE
Actionscript 3 - Session 2 Getting Started Flash IDEActionscript 3 - Session 2 Getting Started Flash IDE
Actionscript 3 - Session 2 Getting Started Flash IDE
OUM SAOKOSAL
 
Desenvolva um game para android ou iPhone
Desenvolva um game para android ou iPhoneDesenvolva um game para android ou iPhone
Desenvolva um game para android ou iPhoneTiago Oliveira
 
Vb.net and .Net Framework
Vb.net and .Net FrameworkVb.net and .Net Framework
Vb.net and .Net Framework
SHIVANGICHAURASIYA
 
How to develop a Graphical User Interface (GUI) in Scilab
How to develop a Graphical User Interface (GUI) in ScilabHow to develop a Graphical User Interface (GUI) in Scilab
How to develop a Graphical User Interface (GUI) in Scilab
Scilab
 

Similar to Programming scripting (20)

Android animation in android-chapter17
Android animation in android-chapter17Android animation in android-chapter17
Android animation in android-chapter17
 
How tomakea gameinunity3d
How tomakea gameinunity3dHow tomakea gameinunity3d
How tomakea gameinunity3d
 
Unity - Essentials of Programming in Unity
Unity - Essentials of Programming in UnityUnity - Essentials of Programming in Unity
Unity - Essentials of Programming in Unity
 
Dynamic Graph Plotting with WPF
Dynamic Graph Plotting with WPFDynamic Graph Plotting with WPF
Dynamic Graph Plotting with WPF
 
WPF - the future of GUI is near
WPF - the future of GUI is nearWPF - the future of GUI is near
WPF - the future of GUI is near
 
Getting started with Verold and Three.js
Getting started with Verold and Three.jsGetting started with Verold and Three.js
Getting started with Verold and Three.js
 
WP7 HUB_Introducción a Silverlight
WP7 HUB_Introducción a SilverlightWP7 HUB_Introducción a Silverlight
WP7 HUB_Introducción a Silverlight
 
Unity 3d scripting tutorial
Unity 3d scripting tutorialUnity 3d scripting tutorial
Unity 3d scripting tutorial
 
2%20-%20Scripting%20Tutorial
2%20-%20Scripting%20Tutorial2%20-%20Scripting%20Tutorial
2%20-%20Scripting%20Tutorial
 
2%20-%20Scripting%20Tutorial
2%20-%20Scripting%20Tutorial2%20-%20Scripting%20Tutorial
2%20-%20Scripting%20Tutorial
 
Unity3d scripting tutorial
Unity3d scripting tutorialUnity3d scripting tutorial
Unity3d scripting tutorial
 
Angular 16 – the rise of Signals
Angular 16 – the rise of SignalsAngular 16 – the rise of Signals
Angular 16 – the rise of Signals
 
27 - Panorama Necto 14 component mode & java script - visualization & data di...
27 - Panorama Necto 14 component mode & java script - visualization & data di...27 - Panorama Necto 14 component mode & java script - visualization & data di...
27 - Panorama Necto 14 component mode & java script - visualization & data di...
 
mvcExpress training course : part1
mvcExpress training course : part1mvcExpress training course : part1
mvcExpress training course : part1
 
Android Development with Flash Builder Burrito
Android Development with Flash Builder BurritoAndroid Development with Flash Builder Burrito
Android Development with Flash Builder Burrito
 
React Native custom components
React Native custom componentsReact Native custom components
React Native custom components
 
Actionscript 3 - Session 2 Getting Started Flash IDE
Actionscript 3 - Session 2 Getting Started Flash IDEActionscript 3 - Session 2 Getting Started Flash IDE
Actionscript 3 - Session 2 Getting Started Flash IDE
 
Desenvolva um game para android ou iPhone
Desenvolva um game para android ou iPhoneDesenvolva um game para android ou iPhone
Desenvolva um game para android ou iPhone
 
Vb.net and .Net Framework
Vb.net and .Net FrameworkVb.net and .Net Framework
Vb.net and .Net Framework
 
How to develop a Graphical User Interface (GUI) in Scilab
How to develop a Graphical User Interface (GUI) in ScilabHow to develop a Graphical User Interface (GUI) in Scilab
How to develop a Graphical User Interface (GUI) in Scilab
 

Recently uploaded

PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
NelTorrente
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Fresher’s Quiz 2023 at GMC Nizamabad.pptx
Fresher’s Quiz 2023 at GMC Nizamabad.pptxFresher’s Quiz 2023 at GMC Nizamabad.pptx
Fresher’s Quiz 2023 at GMC Nizamabad.pptx
SriSurya50
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Reflective and Evaluative Practice PowerPoint
Reflective and Evaluative Practice PowerPointReflective and Evaluative Practice PowerPoint
Reflective and Evaluative Practice PowerPoint
amberjdewit93
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Ashish Kohli
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
ArianaBusciglio
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Fresher’s Quiz 2023 at GMC Nizamabad.pptx
Fresher’s Quiz 2023 at GMC Nizamabad.pptxFresher’s Quiz 2023 at GMC Nizamabad.pptx
Fresher’s Quiz 2023 at GMC Nizamabad.pptx
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Reflective and Evaluative Practice PowerPoint
Reflective and Evaluative Practice PowerPointReflective and Evaluative Practice PowerPoint
Reflective and Evaluative Practice PowerPoint
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 

Programming scripting

  • 2.
  • 4.
  • 5. Pelbagai jenis animasi dapat dihasilkan dengan pengunaan ActionScript. Pengunaan ActionScript tidak melibatkan banyak pengunaan grafik. Apa yang dilakukan di sini ialah memaklumkan tindakan (Action) yang perlu dilaksanakan bagi sesuatu peristiwa (event) itu berlaku. ActionScript membenarkan pengguna untuk mereka movie interaktif yang dimainkan dalam turutan nonlinear dan respon terhadap input pengguna daripada keyboard atau mouse.
  • 6. Mengapa Perlu Belajar ActionScript? Selain mengetahui kod disebalik Flash, ActionScript juga berguna di dalam membangunkan aplikasi interaktif tambahan terhadap movie yang dibina atau menggerakkan objek dari satu kedudukan ke kedudukan lain.
  • 7. Bagaimana Menulis ActionScript? Menulis ActionScript adalah tidak lain daripada menulis arahan. Setiap arahan yang dimasukkan memaklumkan kepada Flash untuk melakukan sesuatu secara spesifik. Contohnya, “play”, “stop”, “or” dan sebagainya. Dengan menentukan arahan bagi setiap baris ActionScript secara spesifik, membenarkan pengguna mencantumkan dan menghasilkan arahan yang lebih baik. Tetapi  harus di ingati bahawa setiap “sentence”( baris kod) merupakan arahan yang tunggal.
  • 8. ActionScript berasaskan masaialah apabila arahan actionscript dimasukkan pada frame. Action yang diarahkan akan dimainkan apabila playhead sampai pada frame yang mengandungi action. ActionScript berasaskan penggunaberlaku apabila butang action mengandungi arahan actionscript . Action yang diarahkan pada butang dimainkan apabila pengguna memberi input, biasanya dalam bentuk mouse event
  • 9.
  • 10.
  • 11. 11 gotoAndPlay This frame action sends the playhead to the specified frame in a scene and plays from that frame. If no scene is specified, the playhead goes to the specified frame in the current scene.
  • 12. 12 Functions Perform a specific task Like in a spreadsheet program (Excel)
  • 13. 13 getVersion Returns the Flash Player version number and operating system information. You can use this function to determine whether the Flash Player that is in use can handle your Actionscript.
  • 14. 14 Properties All available information about an object You can use ActionScript to read and modify object properties All property names begin with an underscore (e.g., _visible)
  • 15. 15 _visible = false This property make an object invisible Assign the following action to a button… On (release) { _visible = false; } Button disappears on mouse click
  • 16. 16 Method Similar to actions in that they effect objects Built into objects Invoked (Executed) through dot notation
  • 17. 17 RocketMC.gotoAndPlay(“BlastOff”); ActionScript notation must end in ; Movie clip Rocket MC goes to a frame labeled BlastOff and plays
  • 18. 18 Variables hold data for use in your Flash movies Variables can hold any type of data You could store: User name Result of calculation True or false value
  • 19. 19 Expressions An expression is any statement that Flash can evaluate and that returns a value. You can create an expression by combining operators and values or by calling a function.
  • 20. 20 Operators Expressions use operators to tell Flash how to manipulate the values in the expression. They are the commands that say “add these values” or “multiply these numbers”
  • 21. 21 Some types of operators Assignment: are used to assign values to variables. The most common is (=). It makes the variable on the left equal to the value of the variable or expression on the right. Comparison and equivalence: (<), (>), (< =) Numeric: perform mathematical operations on values
  • 22. 22 Looping When you need to repeat certain actions in your movies more than once. Makes coding more efficient, using the same set of commands as many times as necessary to complete a task.
  • 23. 23 Looping examples while Creates a loop that continues to repeat as long as a condition remains true for Creates a loop that executes a specific number of times using a counter for…in Creates a loop that executes once for each member of a group of objects (class) This makes certain that the entire group of objects is processed in the same way
  • 24. 24 Hints Before you begin writing scripts, formulate your goal and understand what you want to achieve. Planning your scripts is as important as developing storyboards for your work. Start by writing out what you want to happen in the movie, as in this example: I want to create my whole site using Flash. Site visitors will be asked for their name, which will be reused in messages throughout the site. The site will have a draggable navigation bar with buttons that link to each section of the site. When a navigation button is clicked, the new section will fade in at the center of the Stage. One scene will have a contact form with the user's name already filled in.