Client LoginView your Shopping CartHelp & Frequently Asked QuestionsEmail Us
Home Services Portfolio Web Design Pricing Dreamweaver Templates Web Applications Free Tutorials About Contact Us
Services > CSS Web Design | Professional Logo Design | ASP.net, ASP & PHP Programming | Flash Animation & Programming | Reliable Web Hosting | Website Maintenance
Portfolio > Web Design Portfolio | Web Programming Portfolio | Logo Design Portfolio | Web Design Pricing > Custom Web Design | Logo Design | Business Card Design
Web Design Guide > Website Design w/ Dreamweaver & Fireworks | Fireworks CS4 Cool Features | Photo Effects | Text Effects | Graphic Design Ideas | Web Design Ideas
Website Navigation Ideas | CSS Styles Tutorial | Dreamweaver Template | Server Side Includes | Flash Tutorials > Flash Effects | Flash Sound Button | Sound On/Off Button
Flash Preloader | Import External Data | Promotion > SEO Tips | Google Tips & Page Rank | JavaScript > Date Validation | Email Validation | Phone Validation | Tip Boxes

Flash Sound On/Off Button

On-off button in Flash Actionscripting for Sound/Music files

This Flash tutorial teaches how to play and stop sound/music files using simple actionscript.

Recommended Version: Adobe Flash CS4 Professional

Compatible Versions of Flash for this Tutorial

Flash MX 2004 & below | Flash 8 | Flash CS3 | Flash CS4
Note: For uses of lower versions of Flash some visual interface images would differ.
Recommended Version: Adobe Flash CS4 Professional
You Are Here ::: Home >> Free Tutorials >> Flash Tutorials >> Sound On Off Button

Sound on/off Demo

Introduction

While working in Flash with sound/music files you will find it really necessary to use a sound on/off button as an option. We have endeavored to make the actionscripting used in this tutorial as basic & minimal as possible. Happy Learning!

Please take a look at the demo above. This demo is a simple play/stop button for you to control the sound files in your Flash project. Usually you will need to have the music playing and have a stop button displayed first. Since it is easier to understand how a play and then stop button works we have used this example first. Once this is done we will also teach you how to start with the sound playing and the stop button displayed.

Preparing buttons, importing your sound file and setting the timeline

Making your sound on/off buttons functional using ActionScript

Basic Logic: We are utilizing the inbuilt Sound Class in Flash to dynamically load the sound file and the on/off buttons to play and stop it.

That's it your sound on/off button is ready! Its that simple.

Cool Tip: You can use these buttons even within a movie clip as the sound instance is initiated in the main timeline.

Want to start with the sound playing?

To do this just do the following:

Congratulations! You have just learnt how to play and stop sound/music files using simple ActionScripting.

We would love to hear your comments and any suggestions on future tutorials we can add to this section. Thanks!

Fill the below form to submit your comments (or suggestions):
Bookmark and Share this web page.
Sponsored Link(s):
Beauty Templates | Business Templates | Christian Templates | CSS Templates | Education Templates | Family Templates | Flash Templates | Free Dreamweaver Templates
Food Templates | General Templates | Government Templates | Health/Medical Templates | Hi-Tech Templates | Kids/Childcare Templates | Low-cost Budget Templates
Personal Templates | Pets Templates | Photography Templates | Profession Templates | Real Estate Templates | Sports Templates | Telecom Templates | Travel Templates
Free Tutorials > Web Design Tutorials | CSS Web Design | Fireworks Tutorials | Dreamweaver Tutorials | Flash Tutorials | SEO Tutorials | Javascript Tutorials | PHP Tutorials