Client LoginView your Shopping CartHelp & Frequently Asked QuestionsEmail Us
Home Services Portfolio Rates & Deals Dreamweaver Templates Web Applications Free Tutorials About Us Contact Us
Web Design Guide > Best Web Design Tools | Web Design Ideas | Web Design Tips | Navigation Tips | Fireworks Tips | Rollover Images | Swap Images | CSS Styles Tutorial
Dreamweaver Tips | Dreamweaver Template | Server Side Includes | Dreamweaver Behaviors | Flash Tutorials > Flash Effects | Flash Sound Buttons | Sound On/Off Button
Flash Preloader | Importing External Data | Promotion > SEO Tips | Google Tips & Page Rank | JavaScript > Date Validation | Email Validation | Phone Validation | Tip Boxes

Flash MX 2004 Sound On/Off Button - Actionscripting for Sound/Music files

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!

Note: Minimum Required Flash Player -> Version 6

Sound on/off Demo

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 your buttons, importing your sound file and setting your timeline

Making your sound on/off buttons functional using ActionScript

Basic Logic: We are utilizing the inbuilt Sound Class in Flash MX 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.

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.

Absolutely FREE Web Templates
Check out these quality free web templates and download them without any registration or sign-up!

FREE Web Design Guide
From web design tips & ideas to HTML, CSS Styles, Fireworks & Dreamweaver you'll find all you need to know about effective web site design right here!

Quality Dreamweaver Templates
Professional quality dreamweaver templates in over 20 categories, starting at just $9.95! Instant download & easy customization


Services > Rapid 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 | Print & Logo Design Portfolio | Flash Animation Portfolio | Outsource Clients Portfolio | Client Testimonials
Rates & Deals > Web Design Rates | Custom Web Design Pricing | Logo Design Pricing | Business Card & Letterhead Pricing | Web Hosting Plans | Website Maintenance Plans