Solved

A single botton on/off in order to control two or more sounds in a movie

Posted on 2004-08-19
5
149 Views
Last Modified: 2010-04-03
Hi  i'm Stuk_Pro ... n' need help! ...

I'm doing an intro for one site and need to control two non silmutaneous sounds throught de same botton on  off. Anybody help me please! ...
Be free ... i´don´t mind to be patronised : ))))

Stuck_Pro
0
Comment
Question by:Stuck_Pro
5 Comments
 
LVL 7

Accepted Solution

by:
fixitben earned 35 total points
ID: 11848734
Create a new MC and Place the sound in frame one with a stop(); then in frame 2 instert keyframe with only a stop.

Then place the Mc on the main stage and Change the instance name to sound or some thing

Then create a button  have this as the AS  on(release){_root.sound.play();}  

That will cause it to goto the next frame and stop then once click again goto the first frame then stop and so on.  
 
IF you use  a different instance name then change the sound in the on( release) to something else

Fixitben
0
 
LVL 39

Assisted Solution

by:blue-genie
blue-genie earned 35 total points
ID: 11849776
Ok, brace yourself for some patronising!
Just kidding ;-)
First of all, how is the sound included in your file?
Secondly, when you say control the sounds, do you mean simply sound on and sound off?

If you aren't using a sound object, i'd suggest you do.

then, all you need is to set a flag to check if the audio is playing, if yes, switch it off with stopAllSounds(); if not, turn in on.

blu.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now