MovieCLip Instances & ActionScript

Slides:



Advertisements
Similar presentations
Dawn Pedersen Art Institute. Introduction Prior to Flash CS3, the movement of Illustrator and Photoshop documents into Flash was difficult. At that time,
Advertisements

“Computers and Creativity”
CIS 205—Web Design & Development Flash Chapter 3 Appendix B on Creating Animations.
1 Flash 2 Flash Concepts Reviewed. 2 Flash has three types of symbols 1.Graphic symbols 2.Button symbols 3.Movie clip symbols Dragging an object into.
Flash basics. What Flash is Annoying animations Complete waste of resources Might be if done wrong but  Flash can be used to –Create dynamic content.
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.
© Anselm Spoerri Lecture 11 Flash –Build Flash Website with Animated Navigation Structure –Decide on Overall Navigation Layout, Import Images & Organize.
1 Flash Actionscript Animation. 2 Introduction to Sprites We will now look at implementing Sprites in Flash. We should know enough after this to create.
Work with symbols and instances Work with Libraries Create buttons Assign actions to buttons Unit Lessons.
Macromedia Flash MX A Brief Tutorial for “Programming Usable Interfaces” Andrew Ko.
Kapi’olani Community College Art 258 Interface Programming II In-class Presentation Week 5A.
1 Flash Actionscript Adding Interactive Actions. 2 ActionScript 3.0 ActionScript is the language you use to add interactivity to Flash applications, whether.
1 Flash Programming Introduction Script Assist. 2 Course Description This course concentrates on the teaching of Actionscript, the programming language.
Roentgen photo effect. This detailed, thoroughly explained lesson will show you how to create very attractive roentgen photo effect. You can use this.
MovieClips & Properties Flash ActionScript Introduction to Thomas Lövgren
© 2011 Delmar, Cengage Learning Chapter 8 Building Complex Animations.
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
Chapter 3 Working with Symbols and Interactivity.
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 Flash FYS100 Creative Discovery in Digital Art Forms Spring 2007 Burg.
1 Flash Basics by Dr SC Li. 2 File Types  In general, Flash 5.0 generates 3 types of files:  ???.fla  Flash ’ s working file  ???.swf  Flash movie.
Flash MX II. Flash MX – Tweened Animation There are two methods for creating an animation sequence in Flash –Frame-by-frame animation –Tweened animation.
© 2011 Delmar, Cengage Learning Chapter 9 Introduction to ActionScript 3.0.
CT1514.  What is Motion Guide Layer?  Controls the movement of objects in a Motion tween animation  How to create a Motion Guide Layer?  Click on.
Adobe Flash CS4 – Illustrated Unit C: Using Symbols and the Library Panel.
© 2011 Delmar, Cengage Learning Chapter 3 Working with Symbols and Interactivity.
Copyright © 2003 Pearson Education, Inc. Chapter 3, Slide 1 by Michael Kay The Web Wizard’s Guide to Flash.
Working with Symbols and Interactivity
Creating a Logo – Lesson 3 1 Creating a Logo Lesson 3.
© 2010 Delmar, Cengage Learning Chapter 3: Working with Symbols and Interactivity.
CSC 361/661 Digital Media Spring 2010 Professor Burg.
XP Tutorial 4 Special Animations. XP New Perspectives on Macromedia Flash MX Special Layers for Animation Animation Using a Motion Guide Layer.
Creating Buttons – Lesson 71 Creating Buttons Lesson 7.
Adobe Flash CS3 Revealed Chapter 3 - WORKING WITH SYMBOLS AND INTERACTIVITY.
Chapter 16 Video. Importing Video Into Flash  Once you import video into Flash, you can control it using behaviors and very basic ActionScript, target.
Motion Tweening – Lesson 81 Motion Tweening Lesson 8.
What is Action Script 1.It is a programming language used in Flash 2.It is a language derived from JavaScript 3.It is an interactive language to control.
Distributed Multimedia Programming Week – 4A Buttons Movie Clips.
© Anselm Spoerri Lecture 10 – Related: Part 1 Flash –Build Flash Website with Animated Navigation Structure –Decide on Overall Navigation Layout, Import.
Building the Events Components– Lesson 111 Building the Events Components Lesson 11.
Quick Flash Tips Learn how to use flash the easier way!
Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY.
Macromedia Flash Design Professional And Interactivity WORKING WITH SYMBOLS.
1 Actionscript for Flash by Dr SC Li. 2 Understanding more about instances Symbolsgraphics buttons Movie clips Instances (without names) No interaction.
Distributed Multimedia Programming Week - 3 Shape Tweening Symbols and Instances.
Computer Game Design ActionScript is… Object-oriented programming Everything you do in ActionScript does something to some object* Some objects.
Video in Macromedia Flash (Optional) – Lesson 121 Video in Macromedia Flash (Optional) Lesson 12.
CIS 205—Web Design & Development Flash Chapter 3 Appendix on Using Buttons.
Open a new Flash File Action Script 2.0. Create a button like you did last lesson and name it Click to Play.
XP Tutorial 3 Creating Animations. XP New Perspectives on Macromedia Flash MX Elements of Animation Layers are used to organize the content of.
Intro to ActionScript CIS 126 Greg Shorts. What Is ActionScript? ActionScript is the scripting language Flash uses to control its movies and the objects.
Creating buttons Mak Mang Tao. What is a button? It is an object to make interactive effect through the pointer of the mouse movement It is a four-frame.
DM 11- Flash –Unit C and Interactivity WORKING WITH SYMBOLS.
Integrating Components and Dynamic Text Boxes with the Animated Map– Lesson 101 Integrating Components and Dynamic Text Boxes with the Animated Map Lesson.
CIS 205—Web Design & Development Flash Chapter 3 Working with Symbols and Interactivity.
Macromedia Flash MX Design Professional And Interactivity WORKING WITH SYMBOLS.
 Movieclip symbols are reusable pieces of flash animation  consisting usually of one or more graphic/button symbols  thus they are flash movies within.
Prof. Anselm SpoerriMultimedia Production Rutgers Lecture 11 Flash –Build Flash Website with Animated Navigation Structure –Decide on Overall.
 Motion Tween allow us to move a shape on the stage from one place to another.  In order to use motion tween, the shape to be moved must be converted.
Adobe Flash Professional CS5 – Illustrated Unit C: Using Symbols and the Library Panel.
var variableName:datatype;
Unit Lessons Work with actions
CT1514 Flash-2.
Animate Some more advanced concepts
Interface Programming 2 Week 1
Chapter Lessons Create shape-tweened animations Create a mask effect
Working with Symbols and Interactivity
Let Flash do Guessing at Animation for you.
Exercise : Animated Navigation Structure in Animate (= Flash)
Presentation transcript:

MovieCLip Instances & ActionScript Draggable MovieClips

LIFE – the off-brand version of Lifesavers Draw Something Create your object using the drawing tools LIFE – the off-brand version of Lifesavers They come in different colors, so I’m designing it in grayscale and will tint it later so I can have multiple varieties without having to redraw it

Convert it to a Graphic Symbol Select it Right-Click Convert to Symbol Name it

MovieClip

Create a MovieClip Can contain animations Can be assigned instance names Instance names can be used to apply ActionScript ActionScript is code that allows for interactions

Create a Movieclip Insert..New Symbol… Name it Make type: Movie Clip Naming this inner-life because I’m going to use some trickery to only have to code once by nesting inside another movie clip

See here that I’m inside the movie clip Drag in Graphic See here that I’m inside the movie clip Drag graphic life to stage from library

Make a second MovieClip Insert a new symbol Name it outer-life (this is outer movie clip for my trickery) Drag copy (an instance) of inner- move to the stage from the library

Name the instance Click once on the lifesaver Access the Properties Panel Assign it an instance name – mine in this example is “dragger” It must be one word, but that word is up to you Once it has a name we can control it with code

Open the Actions Panel Right-click on the first frame in the timeline (you should still be inside the outer movie clip Selection Actions Your code will go here

The Script //dragger=instance name //onPress = when mouse pressed //starts dragging the item that was pressed dragger.onPress = function () { startDrag(this); } //onRelease = when mouse released //stops dragging dragger.onRelease = function () { stopDrag();

Return to root (main) timeline Drag some instances of outer movieclip onto the stage Each instance automatically contains an already coded version of the inner movieclip When the move is tested, each individual movie clip will respond to dragging

Tinting the movie clips Select a movie clip Open the Properties Panel From Color Effect section, select Tint

How strongly to apply the color Tint Adjust sliders until desired color achieved preview How strongly to apply the color Amounts of RGB