Creating Buttons – Lesson 71 Creating Buttons Lesson 7.

Slides:



Advertisements
Similar presentations
INTRODUCTION TO ADOBE FLASH CS4
Advertisements

Adding Interactivity to Flash Movies Using Buttons and ActionScript SPACE Lab
Macromedia Flash MX 2004 – Design Professional and Interactivity WORKING WITH SYMBOLS.
Create slices and hotspots Create links in Web pages Create rollovers from slices Create basic animation Add tweening symbol instances to create animation.
Work with symbols and instances Work with Libraries Create buttons Assign actions to buttons Unit Lessons.
Introduction to Macromedia Flash 8
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 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
Frame Part of timeline panel You can remove normal frames from a certain layer by (MRC + Remove Frames). You can remove normal frames from a certain layer.
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.
CIS 205—Web Design & Development Flash Chapter 1 Getting Started with Adobe Flash CS3.
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.
1-1 OBJ Copyright 2003, Paradigm Publishing Inc. Dr. Joseph Otto Silvia Castaneda Christopher deCastro CSULA Macromedia Flash MX Introduction.
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.
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.
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.
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.
Adobe Flash CS3 Revealed Chapter 3 - WORKING WITH SYMBOLS AND INTERACTIVITY.
Creating Buttons – Lesson 51 Creating Buttons Lesson 5.
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,
Exploring the Macromedia Flash Workspace – Lesson 2 1 Exploring the Macromedia Flash Workspace Lesson 2.
Distributed Multimedia Programming Week – 4A Buttons Movie Clips.
Working with Movie Clips – Lesson 61 Working with Movie Clips Lesson 6.
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.
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.
Video in Macromedia Flash (Optional) – Lesson 121 Video in Macromedia Flash (Optional) Lesson 12.
FLASH!!!!!!!!!!!!!!!!!!!!!!!!! A TUTORIAL BY BRITTANY HESS AND MARGARET DENTON.
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.
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.
Chapter1 The flash interface and action script 3.0.
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.
Flash 1. Document Properties Set frame rate and dimensions of project Set frame rate and dimensions of project (default width=550 and height=400)
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.
 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.
Macromedia Flash MX.
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
Flash Concepts and Demos - Overview
Presentation transcript:

Creating Buttons – Lesson 71 Creating Buttons Lesson 7

2 Creating Buttons – Lesson 7 Objectives Import a sequence of images. Create button symbols to control photograph navigation. Add ActionScript to buttons and frames to control movement on the Timeline. Insert keyframes and frames.

3 Creating Buttons – Lesson 7 Import multiple images at one time When creating a movie which contains a series of images that you want to appear in succession, they can all be imported at the same time. The images must have the same name, followed by a numeric sequence such as Image0, Image1, Image2, etc. When imported, the images are all added to the same layer, on individual frames.

4 Creating Buttons – Lesson 7 Import images as a movie clip symbol Create a new symbol, give it a name, and set the Behavior to Movie Clip. You will be in symbol-editing mode for the new symbol and see a blank Stage. Click the File menu, point to Import, then click Import to Stage. Locate the folder with the images to import. Double-click the first image in the sequence. Click Yes when asked if you want to import a sequence of images. The images are all imported to a new layer, which you can rename to indicate its purpose or content.

5 Creating Buttons – Lesson 7 The Timeline for a layer of imported images This figure shows a layer named Photos which has just had a sequence of five images imported to it. After the images are imported, you will see the first image that was imported to frame 1. Click one of the other frames to see the image on that frame.

6 Creating Buttons – Lesson 7 Create button symbols for site navigation You can add button symbols to the library and drag them to the Stage. Buttons allow the user to navigate among the sections of your site. Buttons have four states: Up, Over, Down, and Hit. The Timeline contains a frame for each button state, but the Timeline does not play for button symbols. It reacts to actions of the pointer and the mouse.

7 Creating Buttons – Lesson 7 How to create a button Use the Rectangle (or other shape) tool to draw the button where you want it located. (Buttons are usually located on their own layer, but they do not have to be.) Set the height, width, stroke, and fill color in the Property inspector. Convert the shape to a symbol with a Behavior of Button. Double-click the button to enter symbol- editing mode, and set the actions for the various states.

8 Creating Buttons – Lesson 7 The Timeline for a button The figure below shows the Timeline for a button symbol. Note that, in this case, multiple layers have been defined for the button to separate the elements associated with the button. The Box layer is the shape of the button, the Text layer contains the text written on the button, and the Sound layer will contain a sound that plays when the button is clicked. Note that the Timeline contains one frame for each button state.

9 Creating Buttons – Lesson 7 Adding keyframes to buttons You need to insert keyframes when creating a state for the button. Keyframes are used to change the look or activity of the button in one state without affecting how it appears or acts for other states. Add a keyframe by clicking the state in the Timeline, clicking the Insert menu, pointing to Timeline, and then clicking Keyframe.

10 Creating Buttons – Lesson 7 Add frames to your movie In addition to adding keyframes to your movie, you can add regular frames as well to affect button states. To do so: Click the frame for the button state on the layer to be affected. Click the Insert menu, point to Timeline and then click Frame.

11 Creating Buttons – Lesson 7 Add ActionScript to your movie Defining buttons is not enough to make them do something. You add interactivity by adding ActionScript code to the buttons. There are two areas where you can add ActionScript code: On an object – A button or a movie clip can have actions added to them that cause them to do something when clicked or the pointer rolls over them. On a frame – You can add actions to frames that cause them to stop the movie or jump to a different scene when a particular frame is reached. ActionScript is added in the Actions panel.

12 Creating Buttons – Lesson 7 The Actions panel This figure shows the Actions panel. The left side of the panel shows a list of actions, broken into categories. To add an action to a button, select the button and open or expand the Actions panel. Select an action from the Category list. Double-click an action to insert it into the Script pane.

13 Creating Buttons – Lesson 7 An ActionScript example This figure shows a closer view of the Script pane of the Actions panel. Note that the “on” action has been inserted, and “release” is specified, which means that, when this action occurs, the movie will go to the specified frame and begin playing that frame. The Previous Frame option has been selected, so when the action occurs, the movie will go to the previous frame and play it.

14 Creating Buttons – Lesson 7 Summary In this lesson, you learned: To import a sequence of images. How to create button symbols to control photograph navigation. To add ActionScript to buttons and frames to control movement on the Timeline. To insert keyframes and frames.