XP Tutorial 5 Buttons, Behaviors, and Sounds. XP New Perspectives on Macromedia Flash MX 2004 2 Buttons Interactive means that the user has some level.

Slides:



Advertisements
Similar presentations
Introduction to Macromedia Director 8.5 – Lingo
Advertisements

INTRODUCTION TO ADOBE FLASH CS4
Chapter 14 Sound. Sound  Sound can be used for narration, background soundtracks, rollover noises, and for sound effects to complement animations. 
Creating Animations – Lesson 71 Creating Animations Lesson 7.
Adding Interactivity to Flash Movies Using Buttons and ActionScript SPACE Lab
Macromedia Flash MX 2004 – Design Professional and Interactivity WORKING WITH SYMBOLS.
Work with symbols and instances Work with Libraries Create buttons Assign actions to buttons Unit Lessons.
Introduction to Macromedia Flash 8
1 Flash Programming Introduction Script Assist. 2 Course Description This course concentrates on the teaching of Actionscript, the programming language.
Access Tutorial 10 Automating Tasks with Macros
Chapter 3 Working with Symbols and Interactivity.
Chapter 4 Dreamweaver: Part II The Web Warrior Guide to Web Design Technologies.
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.
Flash MX II. Flash MX – Tweened Animation There are two methods for creating an animation sequence in Flash –Frame-by-frame animation –Tweened animation.
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.
Adding User Interactivity – Lesson 51 Adding User Interactivity Lesson 5.
© 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.
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.
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.
Tutorial 7 Planning and Creating a Flash Web Site.
Creating Buttons – Lesson 71 Creating Buttons Lesson 7.
Distributed Multimedia Programming Week - 1. Document Window  The Document Window is divided in to six main components Timeline – The Timeline is where.
Adobe Flash CS3 Revealed Chapter 3 - WORKING WITH SYMBOLS AND INTERACTIVITY.
Creating Buttons – Lesson 51 Creating Buttons Lesson 5.
Introduction to Flash MX 2004: Action Scripting Lloyd Rieber.
Chapter 16 Video. Importing Video Into Flash  Once you import video into Flash, you can control it using behaviors and very basic ActionScript, target.
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.
5-1 OBJ Copyright 2003, Paradigm Publishing Inc. Adding Sound, Video, and Basic Interactivity with Buttons Macromedia Flash Design & Application.
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,
Distributed Multimedia Programming Week – 4A Buttons Movie Clips.
Building the Events Components– Lesson 111 Building the Events Components Lesson 11.
Macromedia Flash MX 2004 – Design Professional Special Effects CREATING.
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.
XP Tutorial 7 Creating a Flash Web Site. XP New Perspectives on Macromedia Flash 82 Objectives Plan and create a Flash Web site Create a Flash template.
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.
Tutorial 7 Creating Animations. XP Objectives Learn about animation Create a timeline Add AP divs and graphics to a timeline Move and resize animation.
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.
© 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.
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.
 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
INTRODUCTION TO ADOBE FLASH CS4
Chapter Lessons Create shape-tweened animations Create a mask effect
INTRODUCTION TO FLASH ANIMATION
Working with Symbols and Interactivity
Presentation transcript:

XP Tutorial 5 Buttons, Behaviors, and Sounds

XP New Perspectives on Macromedia Flash MX Buttons Interactive means that the user has some level of control over the movie, such as being able to stop or play its animation. Buttons are symbols that contain a Timeline with only four frames, each of which represents a different state of the button. –Up frame –Over frame Rollover effect –Down frame –Hit frame

XP New Perspectives on Macromedia Flash MX Buttons

XP New Perspectives on Macromedia Flash MX Adding a Button from the Common Libraries A quick way to add buttons to your document is by using one of the buttons in the Buttons library. The Buttons library is one of the Flash Common Libraries.

XP New Perspectives on Macromedia Flash MX Viewing the Playback – Stop Button’s Behavior Once you have added a button instance to a document, it is a good idea to see how it works. Click Control on the menu bar, and then click Enable Simple Buttons. Click a blank area of the Stage away from the button to deselect the button. Position the pointer over the playback-stop button instance on the Stage. Click the playback – stop button.

XP New Perspectives on Macromedia Flash MX Editing the Button to Change its Color Double-click the button’s icon in the Library panel to open it in symbol-editing mode. If necessary, increase the magnification of the button. Click the Down frame of the appropriate layer in the Timeline. Change the color of the object associated with this layer by using the Fill Color pop-up window on the toolbar.

XP New Perspectives on Macromedia Flash MX Editing the Button to Change its Color

XP New Perspectives on Macromedia Flash MX Creating a Button Create the button’s shape on the Stage and select the shape. Click Modify on the menu bar, and then click Convert to Symbol. In the Convert to Symbol dialog box, name the symbol and assign the Button behavior to it. Add a text block to the button to label it.

XP New Perspectives on Macromedia Flash MX Testing the Button Instance’s Rollover Effects After you are finished creating the button and its different states, preview the button instance’s behavior on the Stage. Click Control on the menu bar, click the Enable Simple Buttons command to select this option, and then click a blank area of the Stage to deselect the button. Move the pointer over the button to see the rollover effect, and then click the button. Click Control on the menu bar, and then click the Enable Simple Buttons command to deselect it.

XP New Perspectives on Macromedia Flash MX Testing the Button Instance’s Rollover Effects Rollover effect

XP New Perspectives on Macromedia Flash MX Aligning the Buttons When adding several similar objects to a document, you should align the objects. Buttons should be lined up vertically or horizontally and they should be evenly spaced to give your document a professional appearance.

XP New Perspectives on Macromedia Flash MX Aligning Buttons Using the Align Panel Click Window on the menu bar, point to Design Panels, and then click Align to open the Align panel. Using the Selection tool, click the first button instance on the Stage, press and hold the Shift key on the keyboard, and then click the remaining buttons. Make sure the To Stage button on the Align panel is not selected. Click the Align bottom edge button in the Align panel. Click the Space evenly horizontally button. Close the Align panel, and save the changes you have made to your document.

XP New Perspectives on Macromedia Flash MX Understanding Actions and Behaviors Actions are instructions that are used to control a document while its animation is playing. Actions are part of Flash’s programming language called ActionScript, which is very similar to JavaScript. A script is a set of one or more actions that perform some function. An event is a situation where the user is interacting with a button such as clicking a button with a mouse and then releasing it. Behaviors are actions with pre-written ActionScript scripts which assign controls and transitions to an object on the Stage. An event handler tells Flash how to handle an event.

XP New Perspectives on Macromedia Flash MX Behaviors and Scripts Goto and Play action event Delete Behavior button Add Behavior button Symbol and name of object Event handler comments event action

XP New Perspectives on Macromedia Flash MX Adding Behaviors Using the Behaviors Panel When adding behaviors to a button, you add them to the button instance on the Stage and not to the button symbol in the library. If you want an action to execute at a certain point in the animation, then attach it to the frame where you want it to start.

XP New Perspectives on Macromedia Flash MX Adding Behaviors to Frames Behaviors in a frame execute when a particular frame is played. You can create an animation in which a group of frame is played repeatedly by having the playhead go back to an earlier time. This is called a loop.

XP New Perspectives on Macromedia Flash MX Testing the Frame Behavior Click Control on the menu bar, and then click Test Movie. The animation plays and when the playhead reaches the end of the loop, it goes back to the frame labeled Loop Start. Click File on the menu bar, and then click Close to return to the document. Save the changes to your document if the frame behavior is acceptable to you.

XP New Perspectives on Macromedia Flash MX Sound Macromedia Flash offers several ways to use sounds. You can add sounds to your document to play continuously and that are independent of the Timeline. You can add sound effects to instances of buttons to make them more interactive. You can also add sounds that are synchronized with the animations. Sounds can be added in the form of voice narrations.

XP New Perspectives on Macromedia Flash MX Types of Sounds Event sounds, which are the default type, will not play until the entire sound has downloaded completely. Stream sounds are synchronized with the Timeline and begin playing as soon as enough data has been downloaded.

XP New Perspectives on Macromedia Flash MX Finding Sounds for Your Documents Flash Kit’s Web site

XP New Perspectives on Macromedia Flash MX Finding Sounds for Your Documents Killersound at SoundShopper.com at It is best to look for sounds that are royalty free, which means that there are no additional usage fees when you distribute them with your projects. Sounds to be used with your documents must first be imported into Flash.

XP New Perspectives on Macromedia Flash MX Adding a Sound to a Button Import the sound to the document’s library. Open the button in symbol-editing mode. Create a new layer in the button’s Timeline. Create a keyframe in the frame where the sound will be placed. Select the keyframe. Select the sound from the Sound list box in the Property inspector or drag it from the Library panel to the Stage.

XP New Perspectives on Macromedia Flash MX Sound Settings Once you have added a sound to your document, you can control the way it plays by using the sound settings found in the Property inspector. Sound information Sound name Click to see available sound effects Number of times to repeat

XP New Perspectives on Macromedia Flash MX Sound Effects

XP New Perspectives on Macromedia Flash MX Sound Settings The Sync list box lets you set a sound as an Event sound or as a Stream sound. You can also control event sounds by using the Start and Stop sync settings. If you want a sound to play continuously for a period of time, then enter a number in the Repeat text box that specifies how many times you want the sound to play.