Video in Macromedia Flash (Optional) – Lesson 121 Video in Macromedia Flash (Optional) Lesson 12.

Slides:



Advertisements
Similar presentations
Designing Scenes for Macromedia Flash MX 2004 – Lesson 41 Designing Scenes for Macromedia Flash MX 2004 Lesson 4.
Advertisements

© 2010 Delmar, Cengage Learning Chapter 9: Using ActionScript.
CIS 205—Web Design & Development Flash Chapter 3 Appendix B on Creating Animations.
Adding Interactivity to Flash Movies Using Buttons and ActionScript SPACE Lab
Macromedia Flash MX 2004 – Design Professional and Interactivity WORKING WITH SYMBOLS.
© Anselm Spoerri Lecture 11 Flash –Build Flash Website with Animated Navigation Structure –Decide on Overall Navigation Layout, Import Images & Organize.
Work with symbols and instances Work with Libraries Create buttons Assign actions to buttons Unit Lessons.
Creating Flash Buttons Button Making Rollover Effects Enlarging the Clickable Area Giving Buttons Behaviors Behavior Options.
1 Flash Programming Introduction Script Assist. 2 Course Description This course concentrates on the teaching of Actionscript, the programming language.
Chapter 17 Putting It All Together. Viewing the Preloader To view the preloader, 1.CTRL-Enter to test the movie. 2.View > Simulate Download.
6-1 OBJ Copyright 2003, Paradigm Publishing Inc. Animating Using Symbols and Masks and Publishing Flash Movies Macromedia Flash Design & Application.
Chapter 3 Working with Symbols and Interactivity.
Chapter 15 Video. Importing Video Into Flash Once you import video into Flash MX 2004, you can control it using behaviors and very basic ActionScript,
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.
Exercise : Animated Navigation Structure in Flash 1.Develop Answers to “What did you learn in ITI program?” “What do you have to offer?” “What are your.
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.
CIS 205—Web Design & Development Flash Chapter 1 Getting Started with Adobe Flash CS3.
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.
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 5 Making a Document Interactive. XP Objectives Explore the different button states Add a button from the Buttons library Edit a button instance.
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 9 Introduction to ActionScript 3.0.
Publishing a Macromedia Flash Movie – Lesson 131 Publishing a Macromedia Flash Movie Lesson 13.
© 2011 Delmar, Cengage Learning Chapter 3 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.
XP Tutorial 4 Special Animations. XP New Perspectives on Macromedia Flash MX Special Layers for Animation Animation Using a Motion Guide Layer.
7-1 OBJ Copyright 2003, Paradigm Publishing Inc. Using ActionScript and Creating Templates Macromedia Flash Design & Application.
Creating Buttons – Lesson 71 Creating Buttons Lesson 7.
Click your mouse for next slide Flash – Morphing and Shape Tweening You have designed some motion animation with the last lesson There is another type.
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.
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.
UNIT-V MULTIMEDIA APPLICATIONS Learning objectives To learn about symbols and instancesTo learn about symbols and instances To learn how to use Flash Action.
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,
Exploring the Macromedia Flash Workspace – Lesson 2 1 Exploring the Macromedia Flash Workspace Lesson 2.
Distributed Multimedia Programming Week – 4A Buttons Movie Clips.
Building the Events Components– Lesson 111 Building the Events Components Lesson 11.
Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY.
Macromedia Flash Design Professional And Interactivity WORKING WITH SYMBOLS.
XP Tutorial 2 Drawing, Adding Text, and Creating Symbols.
1 Flash Basics by Dr SC Li. 2 Ordinary Movie vs. Flash Movie AnimationVector GraphicsInteractivity MPEG MovieFlash Movie.
Adding Text and Navigation to the Home Page – Lesson 51 Adding Text and Navigation to the Home Page Lesson 5.
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.
Creating an Animated Map – Lesson 91 Creating an Animated Map Lesson 9.
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.
© 2011 Delmar, Cengage Learning Chapter 11 Adding Sound and Video.
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.
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.
 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.
Tutorial 3 Creating Animations.
Adding Buttons, Actions, and Sounds
Flash Interface, Commands and Functions
Macromedia Flash Tutorial
Chapter Lessons Create shape-tweened animations Create a mask effect
Working with Symbols and Interactivity
Develop Rich Internet Content and Applications
Presentation transcript:

Video in Macromedia Flash (Optional) – Lesson 121 Video in Macromedia Flash (Optional) Lesson 12

2 Video in Macromedia Flash (Optional) – Lesson 12 Objectives Import video into Flash. Create a new scene for a preloader. Develop the ActionScript and loading animation for a preloader. Create buttons to control video in Flash. Configure ActionScript to control the Timeline of another movie. Use the loadMovie command and a blank movie target to bring the video SWF into the main movie.

3 Video in Macromedia Flash (Optional) – Lesson 12 Importing video clips can be a challenge Video clips are usually large files, which increases the amount of time they take to download into your movie. To solve that problem, you can place the movie into a separate SWF file with a built-in preloader. The preloader can be used to let the user know that the movie is loading.

4 Video in Macromedia Flash (Optional) – Lesson 12 Place a video in an SWF file Open a new Flash file and set the width and height properties as needed. Select the layer to hold the video and click The File menu, point to Import, and then click Import to Stage. Locate the video file and click the Open button. In the Video Import Wizard, click the option to embed the video in Flash and click Next. Select other desired options in the wizard dialog boxes, click Next to move forward, and click Finish in the last box to embed the video in your Flash file. If the frame length warning box appears, click Yes. Select the video on the Stage and, in the Property inspector, make sure the video is lined up to x = 0, y = 0. Press the Enter key or the Return key to play the video (although sound will not play at this point).

5 Video in Macromedia Flash (Optional) – Lesson 12 Create play buttons to start your video You need to create buttons to allow the user to play and stop the video clip. To create a play button: Create a new layer for the button. Select the Rectangle tool and select a fill color of your choice. Click the Round Rectangle Radius button on the toolbar to specify rounded corners if desired. Draw the button where you want it to be. Double-click the button to select it and convert it to a symbol. Assign it a name and a behavior of Button.

6 Video in Macromedia Flash (Optional) – Lesson 12 Configure the button’s states After the play button has been defined as a symbol, you can set its states by: Double-clicking the button on the Stage to enter editing mode. Insert a keyframe in the Over state and choose a color for the button when in the Over state. Insert a keyframe in the Hit state. Add a new layer for the button text. Use the Text tool to enter the text for the button using the font, size, and other settings of your choice. You can also add sound for the Down state of the button by adding a sound layer, inserting a keyframe for the Down state, and dragging a sound onto the Stage.

7 Video in Macromedia Flash (Optional) – Lesson 12 The Play button being created These figures show the Play button as it is being created. Rounded corners make a button more attractive. Click this button to specify rounded corners. The button drawn on the Stage before text is added.

8 Video in Macromedia Flash (Optional) – Lesson 12 Create the Stop Video button To create a button to stop the video clip: Make a copy of the Play button symbol and name it Stop Video. Insert a keyframe in Frame 2 of the button layer. Note the x/y coordinates of the Play button in Frame 2, delete the Play button, and drag the Stop Video button to the Stage at the same x/y coordinates as the Play button was in. Double-click the Stop button to enter editing mode and change the ‘Play’ text to ‘Stop.’ When the user clicks the Play button to play the movie, as soon as Frame 2 begins, the Play button will be replaced by the Stop button.

9 Video in Macromedia Flash (Optional) – Lesson 12 Create ActionScript for the Play and Stop buttons (part 1) Insert a new layer called Actions. Select Frame 1 of the Actions layer and assign it a label in the Property inspector that will become a target frame for a preloader. Open the Actions panel, expand the Timeline Control category, and double-click the stop command. This prevents the video from playing automatically. Scroll down the Timeline to the last frame of the Actions layer and double-click the gotoAndPlay command, type 1 within the parentheses. This will return the movie to Frame 1 after it has played.

10 Video in Macromedia Flash (Optional) – Lesson 12 Create ActionScript for the Play and Stop buttons (part 2) Select the Play Video button on the Stage in Frame 1. In the Actions panel, click in the Script pane and enter the following script, and then collapse the Actions panel: on (release){ gotoAndPlay(2); with (_root){ gotoAndStop(“Video”); } {

11 Video in Macromedia Flash (Optional) – Lesson 12 Create ActionScript for the Play and Stop buttons (part 3) Select Frame 2 of the button layer and click the Stop Video instance on the Stage. In the Actions panel, click in the Script pane and enter the following script, and then collapse the Actions panel: on (release){ gotoAndPlay(1); with (_root){ gotoAndStop(“Video”); } {

12 Video in Macromedia Flash (Optional) – Lesson 12 Compare the Play and Stop scripts The figure on the left shows the script defined for the Play Video button. The figure on the right shows the script defined for the Stop Video button.

13 Video in Macromedia Flash (Optional) – Lesson 12 Create a new scene for a preloader A preloader is a short animation indicating that the main movie is loading. Creating a separate scene for it creates a new Timeline for that scene only. Click the Window menu, point to Design Panels, then click Scene. Click the Add scene (+) button at the bottom of the dialog box. Double-click the default name to assign a new name to it. Drag the new scene above Scene 1 so it will play first. Select the new scene and close the Scene panel. You will now have a blank Stage for the new scene.

14 Video in Macromedia Flash (Optional) – Lesson 12 Create ActionScript for the preloader (part 1) To create ActionScript for the preloader: Double-click the default layer 1 and name it Actions. Click the first keyframe of that layer and name it Start in the Property inspector. Click Frame 3 of the layer, click the Insert menu, point to Timeline, and click Keyframe. With Frame 3 selected, click on the new keyframe and open the Actions panel. Frames 1 and 2 will be a loop to check the status of the load. Frame 3 will contain the script that does the check.

15 Video in Macromedia Flash (Optional) – Lesson 12 Create ActionScript for the preloader (part 2) In the Actions panel, click in the Script pane and enter the following script, and then collapse the Actions panel: if (_framesloaded >= _totalframes){ gotoAndPlay(“Video”,”StartVideo”); } else { gotoAndPlay(“Start”); }

16 Video in Macromedia Flash (Optional) – Lesson 12 The preloader script This figure shows the final script for your preloader. It will check to see if the video clip is loaded and, if so, it will leave the preloader scene and start playing the main scene. If not, it will loop back and check again. You could also insert an animated message for the preloader to let the user know what is going on with the movie.

17 Video in Macromedia Flash (Optional) – Lesson 12 Create a blank movie as the target for a loaded video You use the loadMovie command to load the video into your Flash movie. Create a blank movie clip symbol to use as the target for the load, and assign it an instance name that can be used in script code. Create an ActionScript using the loadMovie command and the instance name of the blank movie symbol as the target.

18 Video in Macromedia Flash (Optional) – Lesson 12 Summary In this lesson, you learned: To import video into Flash. How to create a new scene for a preloader. To develop the ActionScript and loading animation for a preloader. How to create buttons to control video in Flash. To configure ActionScript to control the Timeline of another movie. How to use the loadMovie command and a blank movie target to bring the video SWF into the main movie.