Solved

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

Posted on 2004-08-19
5
181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What languages and tools i need to use to develop Teen Patti game. 9 647
blocked plugin flash 5 123
Problem witih Adobe Flash Player with a W7 machine 21 64
Flash Converter 8 137
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,…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

756 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