How do I create a mute button for an 'event' sound in Macromedia Flash? Stream sound works easily but compromises the sound quality

I am trying to mute an event sound in Macromedia Flash but have had no success thusfar. I previously learnt how to create a mute button for a 'stream' sync but found the clarity of my sound recording was compromised because of Flash's tendency to override sound settings on publishing.  Converting the sound to an 'event'  maintained the clarity but disabled my use of the mute button. Is there a method for muting an 'event' sound, or is there a formula for improving the output of a stream sync?
mkofahlAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aneesh ChopraCommented:
simply use following code to stop event sound

-----------
stopAllSounds();
-----------

Rgds
Aneesh

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sam85281Commented:
Quality of event sounds isn't better than streams, you just need to set the quality:

1. In the library right-click the audio file and select Export Settings.
2. Uncheck "Use Imported MP3 Quality" if it's checked
3. Change bitrate to at least 32 for now(you can change it later if it doesn't sound good enough)
4. Change quality to best
5. Uncheck "Convert stereo to mono" if it's checked.
6. Click OK

7. Go to File=>Publish Settings
8. In the Flash tab, at the bottom, make sure override sound settings is not checked

Test it

If you need better quality go back to the Export Settings and set the bitrate higher.

Don't go any higher than neccessary to get decent quality or your file size will be huge.

-Sam
Dushan De SilvaTechnology ArchitectCommented:
stopAllSounds();
Dushan De SilvaTechnology ArchitectCommented:
Hi mkofahl,

Did you tried with my comment?

BR Dushan
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.