Introduction to Macromedia Director 8.5 – Lingo

Slides:



Advertisements
Similar presentations
Introduction to Macromedia Director 8.5 – Technology directing a script / play Macromedia Director 8 Shockwave Studio is the world's foremost authoring.
Advertisements

Events Chapter 7. Interactivity The real world is interactive User determines order of actions instead of programmer.
Events Chapter 7. Interactive Real world is interactive User determines order of actions instead of programmer.
The Web Warrior Guide to Web Design Technologies
XP Tutorial 4 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Personalizing Your Windows Environment Tutorial 4.
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
Copyright © 2003 Pearson Education, Inc. Slide 2-1 Created by Jim Lengel, College of Communication, Boston University Web Wizard’s Guide to Shockwave.
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
Macromedia Flash MX 2004 – Design Professional and Interactivity WORKING WITH SYMBOLS.
Flash Workshop Flash Workshop :: Agenda  Introductions  Look at a few Flash Examples  Flash Web Sites  Flash Web Applications  Flash Games.
Macromedia Director 8 Advanced Level Course. Script Basics Lingo can be used to offer your users navigational control of the order of the scenes of your.
Work with symbols and instances Work with Libraries Create buttons Assign actions to buttons Unit Lessons.
Information Technology Center Hany Abdelwahab Computer Specialist.
Kapi’olani Community College Art 258 Interface Programming II In-class Presentation Week 5A.
1 Flash Programming Introduction Script Assist. 2 Course Description This course concentrates on the teaching of Actionscript, the programming language.
Scripts  Director’s scripting language is called Lingo  Lingo can be used to offer your users navigational control of the order of the scenes of your.
Fundamentals of Programming in Visual Basic 3.1 Visual basic Objects Visual Basic programs display a Windows style screen (called a form) with boxes into.
Adding Automated Functionality to Office Applications.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
© 2011 Delmar, Cengage Learning Chapter 8 Building Complex Animations.
GAME:IT Junior Bouncing Ball Objectives: Create Sprites Create Sounds Create Objects Create Room Program simple game.
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
INTRODUCTION TO THE SCRATCH PROGRAMMING ENVIRONMENT.
V Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 16 Topics: Intro to HTML/CSS –Questions? Tech Club Forums.
Chapter 3 Working with Symbols and Interactivity.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Alice: A Visual Introduction to Programming First Edition.
What is Director?  A tool for creating interactive CDs or interactive media and games on the Web.  Combines graphics, sound, video and other media together.
XP Tutorial 5 Buttons, Behaviors, and Sounds. XP New Perspectives on Macromedia Flash MX Buttons Interactive means that the user has some level.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
Code Club Session 2 Dance Party. What will we learn ?  How to change the background  How to create animations  How to make objects talk to each other.
Case Study: Using Macromedia Director
Tutorial 5 Making a Document Interactive. XP Objectives Explore the different button states Add a button from the Button library Create a button Learn.
© 2000 – All Rights Reserved - Page 1 Introduction to JavaScript Programming Part Two.
Chapter 11 Adding Sound and Video. Chapter 11 Lessons 1.Work with sound 2.Specify synchronization options 3.Modify sounds 4.Use ActionScript with sound.
© 2011 Delmar, Cengage Learning Chapter 3 Working with Symbols and Interactivity.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
CMPD 434 MULTIMEDIA AUTHORING Chapter 06 Multimedia Authoring Process IV.
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
Adobe Flash CS3 Revealed Chapter 3 - WORKING WITH SYMBOLS AND INTERACTIVITY.
Tutorial 51 Programming Structures Sequence - program instructions are processed, one after another, in the order in which they appear in the program Selection.
MACROMEDIA DIRECTOR - LECTURE NOTES -. INTRODUCTION Macromedia Director 8.5 is the best selling multimedia authoring program and leading tool for creating.
Chapter 3 Functions, Events, and Control Structures JavaScript, Third Edition.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
JavaScript, Fourth Edition
Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY.
Macromedia Flash Design Professional And Interactivity WORKING WITH SYMBOLS.
Computer Game Design ActionScript is… Object-oriented programming Everything you do in ActionScript does something to some object* Some objects.
SCRIPT PROGRAMMING WITH FLASH Introductory Level 1.
Tutorial 7 Creating Animations. XP Objectives Learn about animation Create a timeline Add AP divs and graphics to a timeline Move and resize animation.
© 2011 Delmar, Cengage Learning Chapter 11 Adding Sound and Video.
5 Event Handling Interactive Programming Suggested Reading Interaction: Events and Event Handling, Supplemental Text for CPSC 203 Distributed this term.
Debugging tools in Flash CIS 126. Debugging Flash provides several tools for testing ActionScript in your SWF files. –The Debugger, lets you find errors.
Scratch for Interactivity Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
How to create a basic game in Scratch. The Scratch Stage The Scratch stage is 480 pixels wide and 360 pixels high x increasesx decreases.
DM 11- Flash –Unit C and Interactivity WORKING WITH SYMBOLS.
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
Macromedia Flash MX Design Professional And Interactivity WORKING WITH SYMBOLS.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Scratch for Interactivity
PYGAME.
Adding Buttons, Actions, and Sounds
ECS 9/7/17.
CHAPTER 8 Multimedia Authoring Tools
Learning Java with Alice 3.0 Game Design Kathy Bierscheid
Introduction to Object-Oriented Programming
Working with Symbols and Interactivity
Creating a Simple Game in Scratch
Presentation transcript:

Introduction to Macromedia Director 8.5 – Lingo

Scripting basics Behaviors – Scripts attached to sprites or frames in the Score, referred to as a sprite behavior or frame behavior. This differs from the behaviors that are in the library palette. All behaviors that have been added to the cast appear in the Behaviors inspector Pop up menu. You can attach the same behavior to more than one location in the score. When you edit a behavior, the edited version is applied everywhere the behavior is attached in the score.

Scripting basics Movie Scripts – These respond to events such as key presses, mouse clicks and your own custom events, and can control what happens when a movie, starts, stops or pauses. Handlers in a movie can be called from other scripts on the movie as the movie plays. Movie scripts are available to the entire movie, regardless of which frame the movie is in or which sprites the user is interacting with. When a movie plays a window or as a linked movie, a movie script is available only to it’s own movie.

Scripting basics Parent scripts These contain Lingo used to create child objects. You can use parent scripts to generate script objects that behave and respond similarly yet can still operate independently of each other. Scripts attached to cast members

Script basics Scripts attached to cast members These are attached directly to a cast member, independent of the Score. Whenever the cast member is assigned to a sprite, the cast members script is available.

How scripts flow Director always executes Lingo statements starting with the first statement and continuing in order until it reaches the final statement or a statement that instructs Lingo to go somewhere else To set up statements so that they run when specific conditions exist, you use if…then, case, and repeat loop structures.

The order in which statements are executed affects the order in which you should place statements. If you write a statement that requires some calculated value, you need to put the statements that calculates the value first. X = 2+2 Put string (x) into member “The Answer”

Planning is essential Before writing reams of scripts, formulate your goals and understand what you want to achieve. Scripting and testing will take time so be patient! The best approach is start simple and test frequently.

Attaching script - Most common frame behaviors – keeps playback head looping a single frame. This is useful when you want your movie to keep playing in a single frame while waiting for the user to click a button or for a digital video or sound to finish playing. Behavior channel Double click the behavior channel in the frame that you want to attach a behavior to.

The lingo expression…. “the frame” always refers to the frame currently occupied by the playhead. This statements essentially tells the playback head to “go back to the frame you are currently in”.

To create a sprite behavior (script attached to a sprite) In the score or on the stage, select the sprite that you’re attaching the behavior to. Then select Window, Behavior Inspector and select New Behavior from the pop up menu. Inputs – on mouse up and end – making it easy to attach a common behavior.

To open a behavior for editing: Double click the behavior in the cast Window Click the Script Window icon in the Behavior inspector.

To remove a behavior from a score location: Select the location and then delete the script from the list displayed in the Property Inspector

To attach existing behaviors to sprites or frames: Drag a behavior from a cast to a sprite or frame in the score or (for sprites) to a sprite on the stage. In the score select the sprites or frames that you’re attaching the behavior to. Then select Window, Behavior Inspector and select the existing behavior from the pop up menu.

To create a movie script: (script attached to a movie) If the current script in the script window is a movie script, click the New Script button in the Script window

Lingo terminology Arguments – Placeholders that let you pass values to scripts e.g. On addThem a,b c = a +b End

Commands: Instruct a movie to do something while the movie is playing e.g. go the frame Constants: Elements that don’t change. TAB, EMPTY and RETURN Events: Actions occur while a movie Expressions: any past of a statement that produces a value e.g 2+2

Functions: Return a value – date Handlers: Lingo statements within a script that run when a specific event occurs in a movie e.g. beep Keywords – reserved words that have a special meaning e.g. end

Lists – ordered sets of values used to track and update an array of data, such as a series of names or the values assigned to a set of variables. E.g. [1,4,2] Messages – notices that Director sends to scripts when specific events occur in a movie Operators – calculate a new value from one or more values. E.g. +, operator adds two or more values together to produce a new value

Properties are attributes that define an object. Variables – elements to store and update values. To assign values to variables or change the values of many properties you use the = operator or the set commanding set startValue == 0 places a value of 0 into a variable named startValue

Lingo supports a variety of data types, including references to sprites and cast members, TRUE and FALSE or 1 and 0 (Boolean) values, strings, constants, integers, floating point numbers, points, reacts, colors and dates

Lingo is not case sensitive – you can use uppercase letters however you want