Solved

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

Posted on 2004-08-19
5
168 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
adobe product that creates checks to sales people for bringing sales 5 387
Action Script commands 4 314
Download Adobe Flash Player 6 63
Adobe Products Forum? 3 153
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
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.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

776 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