SlideShare a Scribd company logo
XP
Tutorial 5
Adding Buttons, Actions, and Sounds
XP
2
New Perspectives on Macromedia Flash 8
Objectives
• Create buttons and add them to a document
• Learn about actions
• Use the Actions panel to add actions to buttons
and frames
• Learn about different types of sound effects and
how to acquire sounds for your documents
XP
3
New Perspectives on Macromedia Flash 8
Objectives (continued)
• Add sound effects to buttons
• Add a background sound to a document
XP
4
New Perspectives on Macromedia Flash 8
Creating Buttons
• Buttons: symbols with a four-frame Timeline
• Four frames correspond to four button states
– Up: button’s default state
– Over: responds to a mouse rollover
– Down: button appearance after being clicked
– Hit: represents clickable (active) area of button
• Movies with interactive controls raise user interest
• Add buttons to quickly provide interactive controls
XP
5
New Perspectives on Macromedia Flash 8
Sample Button States for Each Frame
XP
6
New Perspectives on Macromedia Flash 8
Adding a Button
from the Common Libraries
• Flash Common Libraries provide ready-made symbols
• The Buttons library: a member of Common Libraries
• Accessing button symbols in the Buttons library
– Go to Window  Common Libraries  Buttons
– Drag button symbol to the Stage or Library
• A prefabricated button in Flounders Pet Shop banner
– Playback - stop button used to mute background sound
• Enable Simple Buttons: used to test button on Stage
XP
7
New Perspectives on Macromedia Flash 8
Buttons Library
XP
8
New Perspectives on Macromedia Flash 8
Text Added Above Button
XP
9
New Perspectives on Macromedia Flash 8
Creating a Button
• Buttons can take on various forms
– Examples: rectangles, ovals, and text
• Two commands used to create a button
– Convert to Symbol: converts existing object on Stage
– New Symbol: creates button in symbol-editing mode
• Modify four button frames in symbol-editing mode
• Stop and Play buttons will be added to the Banner
– Text will be added to help identify button functions
XP
10
New Perspectives on Macromedia Flash 8
Play Button Instance Added to
Document
XP
11
New Perspectives on Macromedia Flash 8
Aligning the Buttons
• Similar objects in a document should be aligned
• Align buttons vertically or horizontally
– Buttons should also be evenly spaced
• Use the Align panel to align a group of objects
• Alignment specifications for buttons in the banner
– Three buttons should be aligned by bottom edges
– Buttons should also be evenly spaced
XP
12
New Perspectives on Macromedia Flash 8
Understanding Actions
• ActionScript: Flash’s programming language
• Action: instruction used to control an animation
• Script: a set of one or more actions
• Event: situation triggering execution of a script
– Example: clicking a button and then releasing it
• Event handler: tells Flash how to manage an event
– Example: on release of button, stop an animation
XP
13
New Perspectives on Macromedia Flash 8
Sample Script
XP
14
New Perspectives on Macromedia Flash 8
Adding Actions Using the
Actions Panel
• Actions panel provides two modes of operation
– Normal mode: developer writes scripts
– Script Assist mode: guides scripting of actions
• Actions toolbox: actions directory to panel’s left
• Behaviors: pre-written ActionScripts
• Add behaviors to objects through Behaviors panel
• Add actions to banner buttons for animation control
– Actions are added to instance of buttons on the stage
XP
15
New Perspectives on Macromedia Flash 8
Stop Script
XP
16
New Perspectives on Macromedia Flash 8
Adding Actions to Frames
• Actions in a frame execute when a frame is played
– No event handler is required
• Control sequencing of frames using frame actions
– Example: add play action in last frame to create a loop
• Label frames before referencing in script
• Create a separate layer to add frame actions
• Use of a frame action in the banner
– Displays text animation only once
XP
17
New Perspectives on Macromedia Flash 8
Frame Action
XP
18
New Perspectives on Macromedia Flash 8
Adding Sounds
• Sounds may play continuously in the background
• Sound effects can be added to button instances
– Buttons with sounds are more interactive
• Sounds can be synchronized with the animations
• Sounds can be added in the form of voice narrations
XP
19
New Perspectives on Macromedia Flash 8
Types of Sounds
• Event sounds
– Default sound type
– Play after the entire sound has downloaded completely
– Not synchronized with the Timeline
• Stream sounds
– Synchronized with the Timeline
– Begin playing during file download
– Example: narration matches text animation
XP
20
New Perspectives on Macromedia Flash 8
Finding Sounds for Your Documents
• Some sources for sounds
– Sounds created by developer in sound-editing program
– Prerecorded sounds on CD-ROM or the Web
• Sounds must be imported into a Flash document
• Supported sound formats: WAV, AIFF, and MP3
• Flash Kit’s Web site: http://www.flashkit.com
– Go to Sound FX or Sound Loops
• Check license before using prerecorded sounds
XP
21
New Perspectives on Macromedia Flash 8
Flash Kit’s Web Site
XP
22
New Perspectives on Macromedia Flash 8
Adding Sounds to Your Documents
• Sounds are imported into the document library
• Sounds are represented by a waveform
• Separate layers should be created for each sound
• Sound may only be added to keyframes
• Adding and using sounds
– Select keyframe in Timeline for sound placement
– Add sound from Library or Property inspector’s Sound list
– Sound plays when playhead reaches the keyframe
XP
23
New Perspectives on Macromedia Flash 8
Sound Waveform in Frame
XP
24
New Perspectives on Macromedia Flash 8
Sound Settings
• Control sound using settings in Property inspector
• Sync list box options
– Set sound to event or stream type
– Control when event sounds start and stop
• Loop setting: causes sound to play continuously
• Repeat setting: specifies number of times to play
• Effect list box: modifies the way a sound plays
XP
25
New Perspectives on Macromedia Flash 8
Sound Settings
XP
26
New Perspectives on Macromedia Flash 8
Sound Settings (continued)
• A background sound will be added to the banner
• WAV sound should first be imported to Library
• Experiment with various effects, such as Fade In
• Add action to Mute button to turn off sound
XP
27
New Perspectives on Macromedia Flash 8
Bubbles Sound Waveform in Layer

More Related Content

Recently uploaded

skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)
Mohammad Al-Dhahabi
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
danielkiash986
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
indexPub
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
David Douglas School District
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
Iris Thiele Isip-Tan
 
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
EduSkills OECD
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
JomonJoseph58
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
Prof. Dr. K. Adisesha
 
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
National Information Standards Organization (NISO)
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
Nutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour TrainingNutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour Training
melliereed
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
nitinpv4ai
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
TechSoup
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 

Recently uploaded (20)

skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
 
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
 
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
Nutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour TrainingNutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour Training
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Basic interactivity - buttons-actions-sounds (Tutorial V).ppt

  • 1. XP Tutorial 5 Adding Buttons, Actions, and Sounds
  • 2. XP 2 New Perspectives on Macromedia Flash 8 Objectives • Create buttons and add them to a document • Learn about actions • Use the Actions panel to add actions to buttons and frames • Learn about different types of sound effects and how to acquire sounds for your documents
  • 3. XP 3 New Perspectives on Macromedia Flash 8 Objectives (continued) • Add sound effects to buttons • Add a background sound to a document
  • 4. XP 4 New Perspectives on Macromedia Flash 8 Creating Buttons • Buttons: symbols with a four-frame Timeline • Four frames correspond to four button states – Up: button’s default state – Over: responds to a mouse rollover – Down: button appearance after being clicked – Hit: represents clickable (active) area of button • Movies with interactive controls raise user interest • Add buttons to quickly provide interactive controls
  • 5. XP 5 New Perspectives on Macromedia Flash 8 Sample Button States for Each Frame
  • 6. XP 6 New Perspectives on Macromedia Flash 8 Adding a Button from the Common Libraries • Flash Common Libraries provide ready-made symbols • The Buttons library: a member of Common Libraries • Accessing button symbols in the Buttons library – Go to Window  Common Libraries  Buttons – Drag button symbol to the Stage or Library • A prefabricated button in Flounders Pet Shop banner – Playback - stop button used to mute background sound • Enable Simple Buttons: used to test button on Stage
  • 7. XP 7 New Perspectives on Macromedia Flash 8 Buttons Library
  • 8. XP 8 New Perspectives on Macromedia Flash 8 Text Added Above Button
  • 9. XP 9 New Perspectives on Macromedia Flash 8 Creating a Button • Buttons can take on various forms – Examples: rectangles, ovals, and text • Two commands used to create a button – Convert to Symbol: converts existing object on Stage – New Symbol: creates button in symbol-editing mode • Modify four button frames in symbol-editing mode • Stop and Play buttons will be added to the Banner – Text will be added to help identify button functions
  • 10. XP 10 New Perspectives on Macromedia Flash 8 Play Button Instance Added to Document
  • 11. XP 11 New Perspectives on Macromedia Flash 8 Aligning the Buttons • Similar objects in a document should be aligned • Align buttons vertically or horizontally – Buttons should also be evenly spaced • Use the Align panel to align a group of objects • Alignment specifications for buttons in the banner – Three buttons should be aligned by bottom edges – Buttons should also be evenly spaced
  • 12. XP 12 New Perspectives on Macromedia Flash 8 Understanding Actions • ActionScript: Flash’s programming language • Action: instruction used to control an animation • Script: a set of one or more actions • Event: situation triggering execution of a script – Example: clicking a button and then releasing it • Event handler: tells Flash how to manage an event – Example: on release of button, stop an animation
  • 13. XP 13 New Perspectives on Macromedia Flash 8 Sample Script
  • 14. XP 14 New Perspectives on Macromedia Flash 8 Adding Actions Using the Actions Panel • Actions panel provides two modes of operation – Normal mode: developer writes scripts – Script Assist mode: guides scripting of actions • Actions toolbox: actions directory to panel’s left • Behaviors: pre-written ActionScripts • Add behaviors to objects through Behaviors panel • Add actions to banner buttons for animation control – Actions are added to instance of buttons on the stage
  • 15. XP 15 New Perspectives on Macromedia Flash 8 Stop Script
  • 16. XP 16 New Perspectives on Macromedia Flash 8 Adding Actions to Frames • Actions in a frame execute when a frame is played – No event handler is required • Control sequencing of frames using frame actions – Example: add play action in last frame to create a loop • Label frames before referencing in script • Create a separate layer to add frame actions • Use of a frame action in the banner – Displays text animation only once
  • 17. XP 17 New Perspectives on Macromedia Flash 8 Frame Action
  • 18. XP 18 New Perspectives on Macromedia Flash 8 Adding Sounds • Sounds may play continuously in the background • Sound effects can be added to button instances – Buttons with sounds are more interactive • Sounds can be synchronized with the animations • Sounds can be added in the form of voice narrations
  • 19. XP 19 New Perspectives on Macromedia Flash 8 Types of Sounds • Event sounds – Default sound type – Play after the entire sound has downloaded completely – Not synchronized with the Timeline • Stream sounds – Synchronized with the Timeline – Begin playing during file download – Example: narration matches text animation
  • 20. XP 20 New Perspectives on Macromedia Flash 8 Finding Sounds for Your Documents • Some sources for sounds – Sounds created by developer in sound-editing program – Prerecorded sounds on CD-ROM or the Web • Sounds must be imported into a Flash document • Supported sound formats: WAV, AIFF, and MP3 • Flash Kit’s Web site: http://www.flashkit.com – Go to Sound FX or Sound Loops • Check license before using prerecorded sounds
  • 21. XP 21 New Perspectives on Macromedia Flash 8 Flash Kit’s Web Site
  • 22. XP 22 New Perspectives on Macromedia Flash 8 Adding Sounds to Your Documents • Sounds are imported into the document library • Sounds are represented by a waveform • Separate layers should be created for each sound • Sound may only be added to keyframes • Adding and using sounds – Select keyframe in Timeline for sound placement – Add sound from Library or Property inspector’s Sound list – Sound plays when playhead reaches the keyframe
  • 23. XP 23 New Perspectives on Macromedia Flash 8 Sound Waveform in Frame
  • 24. XP 24 New Perspectives on Macromedia Flash 8 Sound Settings • Control sound using settings in Property inspector • Sync list box options – Set sound to event or stream type – Control when event sounds start and stop • Loop setting: causes sound to play continuously • Repeat setting: specifies number of times to play • Effect list box: modifies the way a sound plays
  • 25. XP 25 New Perspectives on Macromedia Flash 8 Sound Settings
  • 26. XP 26 New Perspectives on Macromedia Flash 8 Sound Settings (continued) • A background sound will be added to the banner • WAV sound should first be imported to Library • Experiment with various effects, such as Fade In • Add action to Mute button to turn off sound
  • 27. XP 27 New Perspectives on Macromedia Flash 8 Bubbles Sound Waveform in Layer