Solved

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

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
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.

710 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