Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Introduction to Action Script for Multimedia | IT 621, Study notes of History of Education

Material Type: Notes; Class: AUTH/SCRIPTING FOR MULTIMEDIA; Subject: INSTRUCTIONAL TECH; University: SUNY-Potsdam; Term: Unknown 1989;

Typology: Study notes

Pre 2010

Uploaded on 08/09/2009

koofers-user-zf8-1
koofers-user-zf8-1 🇺🇸

10 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Flash 8 ActionScript
Chapter 1 Introduction to Actionscript 2.0 - Training from the Source:
What is actionscript?
Actionscript syntax and terms:
Events – something occurrs (clicking mouse) every script is triggered by an event
Actions – any line of script that instructs flash to do something (setting a variable)
Operators - =, >, <, +, -, *, &&, etc... (assigning a value to a variable)
Keywords – words that have specific purposes in actionscript, they are reserved (cannot
be used for anything other than their intended purpose) (if, else, break, var, etc...)
Data – this gets updated created or used during dynamic scripts. (i.e; a variable)
**Variables are case sensitive in actionscript
Curly Braces – usually holds actions that will be triggered and executed
Semicolons – seperate actions in a script
Dot Syntax – used in a couple of different ways:
denote the target path
invoke a method of an object
change the properties of an object (i.e; wheel_mc._rotation = 45;)
Parenthesis – parenthesis are used to set up values for a function
Quotation Marks – used to denote textual data called a “string” the only way for flash
to know differentiate between data and actual text is to use a string.
Comments – flash ignores comments (i.e; // or /* <content> */)
Indenting & Spacing – good habit to get into when developing with ActionScript
Actions Panel:
what is the actions panel?
simply allows you to add and edit actonscript to your FLA and relects the code of what is
selected (i.e; a keyframe or an object on the stage)
practice using the actions panel
Actions Panel Parts:
script pane – allows you to edit the actionscript
toolbar – become familiar with all the toolbar buttons
actions panel menu – become familiar with the options in the menu
toolbox – where flash keeps all of the classes that you can use to develop
script navigator – a quick and easy way to view all the scripts that are in your
FLA, more efficient because you dont need to hunt for your actionscript
Creating Variables
what are variables?
Variable syntax:
var <variable name> : <type> = <value>;
Strict Data Typing
what is strict data typing?
What data types can be used?
pf3

Partial preview of the text

Download Introduction to Action Script for Multimedia | IT 621 and more Study notes History of Education in PDF only on Docsity!

Flash 8 ActionScript

Chapter 1 Introduction to Actionscript 2.0 - Training from the Source: ● What is actionscript? ● Actionscript syntax and terms: ● Events – something occurrs (clicking mouse) every script is triggered by an event ● Actions – any line of script that instructs flash to do something (setting a variable) ● Operators - =, >, <, +, -, *, &&, etc... (assigning a value to a variable) ● Keywords – words that have specific purposes in actionscript, they are reserved (cannot be used for anything other than their intended purpose) (if, else, break, var, etc...) ● Data – this gets updated created or used during dynamic scripts. (i.e; a variable) *Variables are case sensitive in actionscript ● Curly Braces – usually holds actions that will be triggered and executed ● Semicolons – seperate actions in a script ● Dot Syntax – used in a couple of different ways: ● denote the target path ● invoke a method of an object ● change the properties of an object (i.e; wheel_mc._rotation = 45;) ● Parenthesis – parenthesis are used to set up values for a function ● Quotation Marks – used to denote textual data called a “string” the only way for flash to know differentiate between data and actual text is to use a string. ● Comments – flash ignores comments (i.e; // or / */) ● Indenting & Spacing – good habit to get into when developing with ActionScript Actions Panel: ● what is the actions panel? ● simply allows you to add and edit actonscript to your FLA and relects the code of what is selected (i.e; a keyframe or an object on the stage) ● practice using the actions panel ● Actions Panel Parts: ● script pane – allows you to edit the actionscript ● toolbar – become familiar with all the toolbar buttons ● actions panel menu – become familiar with the options in the menu ● toolbox – where flash keeps all of the classes that you can use to develop ● script navigator – a quick and easy way to view all the scripts that are in your FLA, more efficient because you dont need to hunt for your actionscript

Creating Variables

● what are variables? ● Variable syntax: ● var : = ; ● Strict Data Typing ● what is strict data typing? ● What data types can be used?

ActionScript Code Placement

● ActionScript can be placed in all of the following locations in a FLA file: ● Keyframes (cannot be placed on unpopulated frames or regular frames) ● Button Symbols (code must sit within a button event handler) ● on(release){ ... code ... }button events include:on(rollover)on(rollout)on(release)MovieClip Symbols ● actionscript can be added to a movieclips timeline keyframes ● actionscript can be added directly to a movieclip instance ● actionscript that is added to a movieclip instance must go within a clip event handler (i.e; load, enterFrame, mouseDown, mouseUp) ● onClipEvent(mouseDown){... code ...}

Best ActionScript Practices

● what is a best practice in terms of actionscript? ● An idea or procedure that is generally accepted as a good way to approach a certain task ● Best Practice 1: ● No code should ever be placed directly onto a button or movieclip instance ● Best Practice 2: ● Actionscript should always be placed on its own layer. The layer should then be named actions

Objects and Classes

● ****Just an introductory overview**** ● what is an ojbect? ● an object is a container ● when a new object is created it is an empty container ● a variable that lives in an object is a property of that object ● a function that lives in an object is a method of that object ● a function is a group of code which is given a specific task and a name ● a Class is a blueprint for a custom object ● flash has a lot of built-in classes: movieclip, string, number, boolean, button, etc... ● some classes have assets that can be seen on stage but many do not