

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Material Type: Notes; Class: AUTH/SCRIPTING FOR MULTIMEDIA; Subject: INSTRUCTIONAL TECH; University: SUNY-Potsdam; Term: Unknown 1989;
Typology: Study notes
1 / 3
This page cannot be seen from the preview
Don't miss anything!
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 /
● what are variables? ● Variable syntax: ● var
● 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 ...}
● 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
● ****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