Chapter 8 © 2014 by Pearson Education 1 8.1 Origins and Uses of Flash - mid-1990s – FutureSplash Animator - 1996 – Macromedia bought it and renamed it.

Slides:



Advertisements
Similar presentations
INTRODUCTION TO ADOBE FLASH CS4
Advertisements

1What is the Stage. 2How do you open a panel in Flash
“Computers and Creativity”
© Anselm Spoerri Lecture 10 Flash –Recap –Key Components & Tools –Animating Bitmaps –How to modify Color and Transparency of Bitmap –Animating along Motion.
Introduction to Macromedia Flash 8
1 Flash and Animation Presented by : Behzad Sajed Khosrowshahi.
1 Flash Programming Introduction Script Assist. 2 Course Description This course concentrates on the teaching of Actionscript, the programming language.
Creating Animation Pertemuan Matakuliah: L0182 / Web & Animation Design Tahun: 2008.
© 2010 Delmar, Cengage Learning Chapter 4: Creating Animation.
© 2011 Delmar, Cengage Learning Chapter 8 Building Complex Animations.
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.
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.
Chapter 8 © 2009 by Addison Wesley Longman, Inc Origins and Uses of Flash - mid-1990s – FutureSplash Animator – Macromedia bought it and.
Lehigh University Introduction to Flash MX Sharmeen Mecklai.
Tutorial 6 Working with Bitmaps and Gradients, and Publishing Flash Files.
Adobe Flash Professional CS5 Provides a comprehensive authoring environment for creating digital animation and interactive Web sites. Used to create engaging.
Tutorial 5 Making a Document Interactive. XP Objectives Explore the different button states Add a button from the Button library Create a button Learn.
Tutorial 2 Drawing Text, Adding Shapes, and Creating Symbols.
1-1 OBJ Copyright 2003, Paradigm Publishing Inc. Dr. Joseph Otto Silvia Castaneda Christopher deCastro CSULA Macromedia Flash MX Introduction.
1-1 OBJ Copyright 2003, Paradigm Publishing Inc. Drawing Fundamentals Macromedia Flash Design & Application.
© 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 2010 Adobe Systems Incorporated. All rights reserved. ® ® 1 INTRODUCTION TO ADOBE FLASH PROFESSIONAL CS5.
Working with Symbols and Interactivity
© 2010 Delmar, Cengage Learning Chapter 2: Drawing Objects in Adobe Flash.
Creating a Logo – Lesson 3 1 Creating a Logo Lesson 3.
Introduction to Flash. Topics What is Flash? What can you do with it? Simple animation Complex interactive web application, such as an online store. Starting.
© 2010 Delmar, Cengage Learning Chapter 3: Working with Symbols and Interactivity.
Tutorial 1 Introducing Adobe Flash CS3 Professional
CSC 361/661 Digital Media Spring 2010 Professor Burg.
© Anselm Spoerri Lecture 9 Flash –Introduction –Timeline –Layers –Symbol –Keyframe –Tweened Animations –Demonstration –Creating Tweened Animations –Shape.
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.
Adobe Flash CS3 Revealed
Week 11 Hands on Flash Pelekanou Olga INF221 INTRODUCTION TO MULTIMEDIA.
Tutorial 2 Drawing Shapes, Adding Text, and Creating Symbols.
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.
Flash CS 5 Interface BY NSCHEWCZYK | ©2012. MENU BAR A bar at the top of the window. It lists menu options including: File, Edit, View, Insert, Modify,
Building the Events Components– Lesson 111 Building the Events Components Lesson 11.
XP Tutorial 2 Drawing, Adding Text, and Creating Symbols.
Tutorial 3 Creating Animations. XP Objectives Learn the different elements of animation Create frames and layers Organize frames and layers using the.
Chapter2 Create animation. Objectives Import image Use the blank keyframe Add sound Publish the movie as an SWF file Use a motion tween animation.
Flash Develop Rich Internet Content and Applications –Design motion graphics or build data-driven applications Flash Document = “.fla” filename extension.
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.
Flash Concepts and Demos - Overview Recap Unit 2 –Buttons (Simple Text and Animated Button) –Gradient Tool –ActionScript (stop, getURL) –Embed Flash Movie.
XP Tutorial 3 Creating Animations. XP New Perspectives on Macromedia Flash MX Elements of Animation Layers are used to organize the content of.
Flash 1. Document Properties Set frame rate and dimensions of project Set frame rate and dimensions of project (default width=550 and height=400)
Introduction to Tool Panel. The tools in the Tools panel let you draw, paint, select, and modify artwork, as well as change the view of the Stage If the.
© Anselm Spoerri Lecture 10 Flash –Recap –Key Concepts, Components & Tools –Demonstration –Buttons: Simple Text Button | Animated Button –Gradient Tool.
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.
Slide1. How to start Adobe Flash? Ans. Click on Start> All Programs> Adobe Design Premium CS5.5 >Adobe Flash Professional CS5.5 How to make the workspace,
Introducing Macromedia Flash 8
Tutorial 3 Creating Animations.
Adding Buttons, Actions, and Sounds
Flash Interface, Commands and Functions
Computer presentation
INTRODUCTION TO ADOBE FLASH CS4
Chapter Lessons Use the Macromedia Flash drawing tools
INTRODUCTION TO FLASH ANIMATION
8.1 Origins and Uses of Flash
Working with Symbols and Interactivity
Develop Rich Internet Content and Applications
Flash Concepts and Demos - Overview
Presentation transcript:

Chapter 8 © 2014 by Pearson Education Origins and Uses of Flash - mid-1990s – FutureSplash Animator – Macromedia bought it and renamed it Flash – Adobe bought Macromedia - Current version: Flash CS5.5 - Now – Flash is the leading technology for graphics, animation, and video on the Web - Flash is supported by two systems: 1. The Flash player 2. The Flash authoring environment 8.2 The Flash Authoring Environment

Chapter 8 © 2014 by Pearson Education The Flash Authoring Environment (continued) - Three kinds of files: Movies -.swf Documents -.fla Files with ActionScript -.as - Selecting Create New opens the workspace

Chapter 8 © 2014 by Pearson Education The Flash Authoring Environment (continued) - The tools panel: - The COLOR panel: - Drawing Tools - Predefined Figures - Rectangles Tool

Chapter 8 © 2014 by Pearson Education The Flash Authoring Environment (continued) - To draw a rectangle: - Select stroke style, stroke color, and fill color - Place cursor on the stage, hold down left button and drag - Hold down Shift key to get a perfect square - Drawing an oval is just like drawing a rectangle - Polystar Tool - Use Options button of the properties panel to choose between a polygon or a star - The number of points is then chosen - For stars, the point size can be chosen

Chapter 8 © 2014 by Pearson Education The Flash Authoring Environment (continued) - Modifying a drawn figure: - The Select tool: - A single click on a stroke selects that stroke - A double click on a stroke selects the whole stroke - A single click inside the figure selects the fill - A double click inside the figure selects the whole figure - Strokes can be bent by dragging them

Chapter 8 © 2014 by Pearson Education The Flash Authoring Environment (continued) - Primitive Rectangles and Ovals - Difference: non-primitive figures are disconnected from their master templates - Effects: 1. Disconnected figures can be modified 2. The master template parameters of a disconnected figure cannot be modified - These parameters control the radius of the corners

Chapter 8 © 2014 by Pearson Education The Flash Authoring Environment (continued) - Positive values round the corner in the usual way - Negative values round the corner to the inside - Primitive Ovals- Start angle, End angle, and Inner Radius

Chapter 8 © 2014 by Pearson Education The Flash Authoring Environment (continued) - When a figure is placed on the stage, a black dot appears in the first frame of the time line – it is now a populated frame - The first frame is a keyframe by default

Chapter 8 © 2014 by Pearson Education The Flash Authoring Environment (continued) - Lines – drawn with the Line Tool - Freehand drawing – Pencil Tool, Pen Tool, and Brush Tool - Pencil Tool – When it is selected, two small icons appear at the bottom of the tools panel - The right icon is a squiggly line – click it and three labeled icons, Straighten, Smooth, and Ink (the default) - Text (we discuss classic text only) - Selecting the Text Tool and clicking the left mouse button places a narrow box on the stage - As text is typed in the box, it stretches in width - Each corner of the box can be dragged to lengthen the box – when it is lengthened, it switches to wrap mode and the upper right corner changes from a small circle to a small square - If the upper right corner is double-clicked, the box reverts to its original size

Chapter 8 © 2014 by Pearson Education The Flash Authoring Environment (continued) - Text (continued) - The properties panel for text: - The most commonly used part is the upper menu (Static Text) - Other options are Dynamic and Input

Chapter 8 © 2014 by Pearson Education The Flash Authoring Environment (continued) - Flash supports both bitmap and vector figures - Vector figures can be created and modified - Bitmap figures are imported and cannot be modified - GIF, JPEG, and PNG figures are bitmap - Microsoft WMF figures have both kinds - Libraries and Symbols - Every Flash document has a library, which stores the things that could be part of the movie - Graphic figures can be stored as symbols - Symbols in the library can be dragged to the stage - Library contents are shown in the Library panel - Figures created on the stage are vector graphic figures - Can be converted to symbols and placed in the library with Modify/Convert to Symbol - This opens a dialog box - Usually rename the symbol and select a type

Chapter 8 © 2014 by Pearson Education The Flash Authoring Environment (continued) - Libraries and Symbols (continued) 8.4 An example – Static Graphics - A banner for an ad for used airplanes - Because it is static, it occupies a single frame - Also, we’ll use a single layer - Steps: 1. Open a new Flash document and resize the stage to 700 by 350 pixels 2. Create the text box with the company’s name and slogan

Chapter 8 © 2014 by Pearson Education An example – Static Graphics (continued) 3. Add two small airplane figures - Select File/Import and browse for the figure - For bitmap graphic figures, import to the stage, which also puts it in the library - For vector graphic figures (including WMF), import to the library and drag an instance to the stage

Chapter 8 © 2014 by Pearson Education An example –Static Graphics (continued) Step 4. Add a star with the word “Sale” inside - Draw an 8-point star and stretch the six side points - Convert it to a symbol - Use the Text Tool to put “Sale” inside the star

Chapter 8 © 2014 by Pearson Education An example –Static Graphics (continued) Step 5. Test the movie with Control/Test Movie Step 6. Publish the movie - Select File/Publish/Settings

Chapter 8 © 2014 by Pearson Education An example –Static Graphics (continued) - Can publish the movie as an SWF file and insert it into an HTML document - The HTML file produced by Flash uses UNIX eolns, so on Windows it is hard to read or edit - We added the following to the HTML document: p.special {text-indent: "2.5in"; font-family: 'Times New Roman'; font-size: 24pt; font-style: italic; color: "red"; text-decoration: "underline";} p.list {text-indent: "1in"; font-family: 'Times New Roman'; font-size: 16pt; color: "blue";}

Chapter 8 © 2014 by Pearson Education An example –Static Graphics (continued) <!-- Content added to the Flash-produced file for the aidan_static3 movie --> Specials of the Week Cessna 210 $49, Piper Commanche $72, Cessna 182RG $81,000

Chapter 8 © 2014 by Pearson Education An example –Static Graphics (continued) 8.5 An Example – Animation and Sound - Introduction to Animation - Same approach as a film movie - Create a sequence of pictures with small changes and view them in rapid succession

Chapter 8 © 2014 by Pearson Education An Example – Animation and Sound (continued) - Introduction to Animation (continued) - Developer builds a few of the frames - Flash builds the rest, using either classic tweening or motion tweening – we’ll only do classic tweening - Different assets of most movies occupy their own layers, some static and some animated - An example – moving a figure with classic tweening - Simple animation – just move a figure across the stage 1. Create a new Flash document ( aidan_dynamic1 ) and resize the stage to 700 by 400 pixels 2. Change the name of the initial layer to name 3. Select frame 1 and create the text for the company’s name and slogan; lock the layer 4. Create a new layer with Insert/Timeline/Layer and name it animation1 (layers are displayed bottom first)

Chapter 8 © 2014 by Pearson Education An Example – Animation and Sound (continued) - Layers can be dragged with the cursor 5. Import a vector graphic figure of an airplane to the library 6. Select frame 1 of the animation1 layer and drag an instance of the figure onto the stage – place it in the upper left corner 7. Convert the figure to a symbol with Modify/ Convert to Symbol – select type Movie clip and name the figure airplane 8. Create a new keyframe in frame 100 by right- clicking in frame 100 of the animation1 layer and selecting Insert Keyframe from the menu that appears 9. With frame 100 and the animation1 layer selected, drag the airplane figure from the upper left corner to the upper right corner 10. Select frame 50 of the animation1 layer and then select Insert/Classic Tween - This creates the in between frames - Indicated with a long arrow from frame 1 to 100 and the purple color

Chapter 8 © 2014 by Pearson Education An Example – Animation and Sound (continued) 11. The text in the movie must be copied into frames 2 to 100 Click frame 100 in the name layer and select Insert/Timeline/Frame 12. Test the movie ( aidan_dynamic1 ) - More Animation - Add the star with “SALE” in it and make it grow and shrink as the airplane moves across the stage Steps: 1. Add a new layer to aidan_dynamic1 and name it animation2 (Insert/Timeline/Layer or click Insert Layer (bottom left of the layers panel) 2. Select frame1 and the new layer and create a 12-point star with dark blue stroke and white fill and stretch the points on left and right 3. Convert the star to a symbol named star and set its type to Movie clip 4. Put the text in the star in red bold 18 pt (in the name layer)

Chapter 8 © 2014 by Pearson Education An Example – Animation and Sound (continued) 5. Create two new keyframes in animation2, one in 50 and one in 100 (Insert/Timeline/Keyframe) 6. Select frame 50 and the animation2 layer and the star. Select the Free Transform Tool – this puts a rectangle with black squares on the corners around the star. Drag a corner square with Shift held down to make the star smaller. 7. Select frame 25 in the animation2 layer and select Insert/Classic Tween. Repeat in frame 75. (Symbols cannot be shape tweened) 8. Test the movie

Chapter 8 © 2014 by Pearson Education An Example – Animation and Sound (continued)  SHOW aidan_dynamic1 - Shape animation - Only vector figures can be shape tweened - Example - red circle to blue square to green triangle Steps: 1. Create a new movie named shape_morph and rename the initial layer morph 2. Draw a circle in frame 1 with a dark red stroke and a light red fill 3. Create a blank keyframe in 50 by right clicking frame 50 and selecting Insert Blank Keyframe from the menu that appears 4. Draw in frame 50 a square with dark blue stroke and light blue fill 5. Select frame 25 and select Insert/Shape Tween

Chapter 8 © 2014 by Pearson Education An Example – Animation and Sound (continued) 6. Create a blank keyframe in frame Draw in frame 100 a triangle with dark green stroke and light green fill. 8. Select frame 75 and select Insert/Shape Tween 9. To align the figures on the stage: Click Edit Multiple Frames button (this places square brackets on the timeline). Drag the right bracket to frame 100; drag the left bracket to frame 1. Click Control-A to select all elements. Select Modify/Align and Vertical Center from the resulting menu. Then do the same with Horizontal Center 10. Turn off the Edit Multiple Frames 11. Test the movie  SHOW shape_morph

Chapter 8 © 2014 by Pearson Education An Example – Animation and Sound (continued) - Frame Rates - Animation can be made smoother by placing the assets farther apart on the timeline - More frames means a larger file means slower download - The frame rate is the speed at which the frames are displayed - Too fast creates blur - Too slow creates jerky motion - Film frame rate is 24fps; the Flash default rate is 12 - If the frame rate is high and the Internet connection is slow, the movie cannot be displayed properly - If most of your target audience has high-speed Internet connections, use a high frame rate - If most of your target audience has slower Internet connections, use a low frame rate

Chapter 8 © 2014 by Pearson Education An Example – Animation and Sound (continued) - Sound - Sound clips can be added to Flash movies - As an example, we’ll add a sound clip to aidan_dynamic1 and name it aidan_dynamic2 - Add a new layer and name it sound - Download a sound clip to the library and edit it - Properties panel for a sound clip:

Chapter 8 © 2014 by Pearson Education An Example – Animation and Sound (continued) - Click the edit button (the pencil icon) to get: - Either the left end, right end, or both ends can be removed by sliding the small rectangle at the center left or right - We shortened the sound clip to better match the length of the movie - The waveform of the clip is shown in the timeline

Chapter 8 © 2014 by Pearson Education An Example – Animation and Sound (continued) - Sound clips can be compressed - Select the library entry for the sound clip - Click the third icon from the left at the bottom of the library panel (button is named Properties)

Chapter 8 © 2014 by Pearson Education An Example – Animation and Sound (continued) - Select MP3 in the Compression menu - Adjust the Bit rate – set it to the slowest bit rate that results in acceptable sound - Set Quality to Best  SHOW aidan_dynamic2

Chapter 8 © 2014 by Pearson Education User Interactions - Flash documents can be designed to allow users to control the content of the movies - Control is provided through graphical components - ActionScript is used to program the control - Actions - ActionScript can reside in an external file or be associated with frames - User interactions raise events and the event handlers implement the movie controls - Event handlers are registered with addEventListener - Player control methods: nextFrame() gotoAndPlay( frame number ) play() stop() - Actions are added to a new layer, often named actions

Chapter 8 © 2014 by Pearson Education User Interactions (continued) - ActionScript is written in a window that appears when Window/Actions is selected - Script Assist helps one create ActionScript - Usual components are prebuilt - An Example - Use an airplane ad with a title and an animated airplane ( aidan_dynamic1 ), add start and stop buttons for the animation - Add two new layers, buttons and actions - Create the two buttons from the window opened by selecting Window/Components/User Interface

Chapter 8 © 2014 by Pearson Education User Interactions (continued) - Change the labels of the buttons by selecting the button and selecting Window/Component Inspector - Then type the new label in Value - Next, give instance names to the buttons (stopButton and startButton) in their property panels

Chapter 8 © 2014 by Pearson Education User Interactions (continued) - Code is placed in the Window/Actions window - The code for our project: - In frame 1 enter the handler function handleClick(bEvent: MouseEvent) { if (bEvent.target == stopButton) stop(); if (bEvent.target == startButton) play(); } - Finally, add the code to register the handler: stopbutton.addEventListener( MouseEvent.CLICK, handleClick); startbutton. addEventListener( MouseEvent.CLICK, handleClick);  SHOW interact