Introduction to Flash CSC361/661 Digital Media Spring 2007 Burg.

Slides:



Advertisements
Similar presentations
INTRODUCTION TO ADOBE FLASH CS4
Advertisements

1What is the Stage. 2How do you open a panel in Flash
© 2011 Delmar, Cengage Learning Chapter 7 Importing and Modifying Graphics.
Importing and Modifying Graphics
“Computers and Creativity”
CIS 205—Web Design & Development Flash Chapter 3 Appendix B on Creating Animations.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 18 – Macromedia Flash MX 2004: Building an Interactive Game Outline 18.1 Introduction 18.2 Object-Oriented.
Macromedia Flash 5 Intermediate Level Course. Animation Basics Playhead In-Between Frames Keyframe Current Frame Number Framerate Current Time Frames.
Macromedia Flash Cartoons & Buttons Your Presenter: Laura Silberstein
Introduction to Macromedia Flash 8
Frame(GIF) and Vector Animation. Two Applications for Creating Animations 1.Photoshop – GIF Animation 2.Flash – Vector Animation.
1 Flash and Animation Presented by : Behzad Sajed Khosrowshahi.
Creating Animation Pertemuan Matakuliah: L0182 / Web & Animation Design Tahun: 2008.
Chapter 8 – Part I Interactive Multimedia Authoring with Flash: Animation “Computers and Creativity” Richard D. Webster, COSC 109 Instructor Office: 7800.
© 2010 Delmar, Cengage Learning Chapter 4: Creating Animation.
© 2011 Delmar, Cengage Learning Chapter 8 Building Complex Animations.
Chapter 17 Putting It All Together. Viewing the Preloader To view the preloader, 1.CTRL-Enter to test the movie. 2.View > Simulate Download.
Chapter 3 Working with Symbols and Interactivity.
BUILDING RICH MEDIA ELEMENTS. Design Decisions Based on Design Specification  Following the design specification will ensure that the application is.
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.
Case Study: Using Macromedia Director
Flash II MIS439 Eva Tao March 19, 2007 Source:
Flash MX II. Flash MX – Tweened Animation There are two methods for creating an animation sequence in Flash –Frame-by-frame animation –Tweened animation.
Lehigh University Introduction to Flash MX Sharmeen Mecklai.
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.
© 2011 Delmar, Cengage Learning Chapter 3 Working with Symbols and Interactivity.
© 2012 Adobe Systems Incorporated. All Rights Reserved. Copyright 2012 Adobe Systems Incorporated. All rights reserved. ® INTRODUCTION TO FLASH ANIMATION.
Copyright © 2003 Pearson Education, Inc. Chapter 3, Slide 1 by Michael Kay The Web Wizard’s Guide to Flash.
® Copyright 2008 Adobe Systems Incorporated. All rights reserved. ® ® 1 INTRODUCTION TO ADOBE FLASH CS3.
® Copyright 2010 Adobe Systems Incorporated. All rights reserved. ® ® 1 INTRODUCTION TO ADOBE FLASH PROFESSIONAL CS5.
Working with Symbols and Interactivity
XP Tutorial 1 Introduction to Macromedia Flash MX 2004.
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.
Adobe Flash CS5 Introduction. What is Flash? Flash is a multimedia platform used to add animation, video, and interactivity to Web sites. It is often.
Creating Buttons – Lesson 71 Creating Buttons Lesson 7.
Adobe Flash CS3 Revealed Chapter 3 - WORKING WITH SYMBOLS AND INTERACTIVITY.
More Tips on Flash CSC361/661 Digital Media Spring 2007 Burg.
Introduction to Flash MX 2004: Action Scripting Lloyd Rieber.
CSC 361/661 Digital Media Spring 2010 Professor Burg.
© 2011 Delmar, Cengage Learning Chapter 4 Creating Animations.
Chapter 4 Creating Animations. Chapter 4 Lessons 1.Create motion tween animations 2.Create classic tween animations 3.Create frame-by-frame animations.
2006 Adobe Systems Incorporated. All Rights Reserved. 1 INTRODUCTION TO ADOBE FLASH CS3.
Motion Tweening – Lesson 81 Motion Tweening Lesson 8.
Introduction to Flash Animation CS 318. Topics Introduction to Flash and animation The Flash development environment Creating Flash animations  Layers.
I MPORTING AND M ODIFYING G RAPHICS. 1. Understand and import graphics 2. Break apart bitmaps and use bitmap fills 3. Trace bitmap graphics Objectives.
1 Flash Basics Exercise Guide Making Animated Text  1.1 Open Flash 5.0 working environment frame 1  1.2 Highlight frame 1 of the first layer Insert.
1 Flash Basics by Dr SC Li. 2 Ordinary Movie vs. Flash Movie AnimationVector GraphicsInteractivity MPEG MovieFlash Movie.
Flash Develop Rich Internet Content and Applications –Design motion graphics or build data-driven applications Flash Document = “.fla” filename extension.
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.
Animation in flash. Frame-by-Frame Animation An animation is made from a series of framed images displayed one after the other to create the motion. Flash.
CIS 205—Web Design & Development Flash Chapter 3 Working with Symbols and Interactivity.
Packages that we use Within ICT we primarily use Dreamweaver CS3 and Flash CS3 This is embedded in an Adobe Design Premium CS3 package (Go to Start >
Animation Part I: Interactive Multimedia Authoring with Flash
Flash Interface, Commands and Functions
Computer presentation
CT1514 Flash-2.
Exercise 63 Use a Flash movie clip symbol to store an animation that you need to use more than once in an application. This is very important for keeping.
INTRODUCTION TO ADOBE FLASH CS4
Animate Workspace. Objective % Utilize appropriate tools and methods to produce digital animation.
Animate Some more advanced concepts
INTRODUCTION TO FLASH ANIMATION
Working with Symbols and Interactivity
Develop Rich Internet Content and Applications
ANIMATE WORKSPACE Stage Timeline Properties Panel Library Panel
Presentation transcript:

Introduction to Flash CSC361/661 Digital Media Spring 2007 Burg

Designed for vector graphics Vector graphic images save objects as lines, geometric shapes. Vector graphic files are usually smaller than bitmap files. Good for web applications, where it’s better to have small files Good for cartoon or poster-like images. It’s easy to animate.

Drawing You can draw vector graphic objects directly in Flash. You can also create them in Illustrator or Freehand and import them. You can also import sound and bitmap images.

Flash’s Stage vs. Director’s Stage Both the Director and Flash Stages are laid out in frames horizontally The Stage in Director is organized into Channels (vertically). Only one sprite can be on a channel at any moment in time. But more than one sprite appears on Stage if one sprite is on Channel 1 and another on Channel 2 in the same frame. The Flash Stage is organized into Layers (vertically). You can draw more than one vector object onto the same Layer. But sometimes it’s easier for tweening to have one object per Layer.

Layers in Flash Layers in Flash are like pieces of acetate laid one over the other. They are transparent except for where you put objects. You can animate Layers separately.

Programming in Flash vs. Programming in Director As is true with Director, in Flash you can make a lot of things happen without doing any programming. You can insert objects into layers and tween their shapes, sizes, and colors. As is true with Director and Lingo, you can do have even greater control over the animation if you use Flash’s scripting language, ActionScript. Like Lingo, ActionScript can be used in an object-oriented programming style (but you don’t have to use OOP).

Lines, Strokes, and Fills You can make vector objects that are just lines or strokes. They don’t have any color fill in them. You can also fill vector objects with color, so they have both an outline (lines and strokes) and a fill color. You can also have objects that have fill but no outline. The outline and fill are treated separately unless you group them.

Multiple Objects When you draw or drag one object over another, it cuts the other into pieces (unless the object has been “grouped”).

Things to Experiment With Gradients Pens and brushes Color mixing Bézier curves Try to make four cards by Friday – A club, heart, diamond, and spade of whatever value.

File Types for Distribution.fla is the native Flash environment. You have to have the Flash authoring program installed on your computer to play this file..swf is the web-version. You can play this via a web page or import it into a Director movie..exe is a stand-alone projector, executable on the platform for which it was compiled (Windows or Mac versions).

Keyframes You begin with a blank keyframe on a layer. Blank keyframes are represented by hollow circles. When you put something on the blank keyframe, it becomes a keyframe and is represented by a black circle. If you add more frames after a keyframe, they will contain what is on the previous keyframe. If you add a keyframe, it will have what was on the previous frame, and you can change this and then tween between the last keyframe and this one. If you add a blank keyframe you’ll get a blank frame and can start a whole new animation.

Shapes and Shape Tweening You can create shapes on the stage using Flash’s vector graphic tool. Shapes can be “shape tweened.” Shape tweening doesn’t just change the shape. It also can change color, scale (i.e., size), rotation, skew, position, and gradient. You can’t use shape tweening with grouped objects, symbols, or text that is not broken apart.

Symbols Once you’ve made a shape on the stage, you can convert it to a symbol if you want to. Then the symbol becomes part of your library. There are three kinds of symbols: –Graphic – has its own timeline, but the main timeline must be at least as long –Button – has its own timeline defining up, over, down, and hit states –Movie clip – has an independent timeline You can make multiple instances of a symbol. The symbol serves as a template. It’s like a class in C++ or a cast member in Director.

More about Tweening You can “motion tween” grouped objects, text, and symbols. You can’t “motion tween” shapes. You can’t “shape tween” text without breaking it apart. You can “motion tween” along a path by inserting a path layer and connecting an object’s registration point at the beginning and end of the path.

Bitmaps Flash will compress any imported bitmaps when it publishes the movie. The choices are PNG/GIF (lossless) or JPEG (lossy). You can make global settings under File\Publish Settings. You can make settings for individual bitmaps under Bitmap Properties. These override global settings. You can import numbered sequences of images and they’ll play like a movie (if they are sequential images like movie frames).

The equivalent of Director’s frame markers There are two ways you can create points that are like Director’s frame markers: –Scenes –Frame labels You can go to these places with goToAndStop() or goToAndPlay()

Variables Only movie clips can be given instance names. You can then refer to them in ActionScript and make things happen dynamically. To create a global variable, use _global. as the prefix on the variable name.

Script You can put a script on a frame or on an object on stage. Make an actions layer where you put the frame scripts. When you click on the frame that has a script attached to it, you’ll see the script in the Actions panel. When you click on an object that has a script attached to it, you’ll see the script in the Actions panel.

Buttons Buttons have an up, over, down, and hit state. You define these states in the button’s timeline. Use the on (release) event handler to define what happens when the mouse is released (you click on the object).

Constructing a Blackjack game in Flash Make the card objects. Each is a movie clip so that it can have a name. They are all in the library. Create a layers in this order (from top down): –Actions –Button –Cards –Background Lock the Background layer since you’re not going to change it. Put all 52 cards on the Cards layer, in the “off stage area.” Give each one an instance name. Put a face-down card in the middle of the stage, as if it’s a deck face down.

A script for initialization Put a script on the first frame. stop() will make the movie stop on the first frame and wait for you to click a button. Global variables in the frame script : –_global.deck, _global.player, _global.discard, _global.maxDepth Put the 52 card instances in an Array which is the deck. Shuffle the deck. Initialize the other global variables.

Starting the game and dealing the cards Deal out the first four cards. Click the “deal card” button to deal a card. The “deal card” button has an on (release) event handler on it. Make sure the cards are at the right depth so each will be laid on top of the previous one.

Other details Make sure the card is placed on the correct side of the table. Calculate the score at each card dealt. Give some indication of the winner. This description assumes only two players. Change the implementation so that more players can join. Change to an object-oriented design.