# Controlling sounds in a projector

**URL:** https://forum.kirupa.com/t/controlling-sounds-in-a-projector/51828
**Category:** Uncategorized
**Created:** [May 17, 2004, 6:04pm UTC](https://forum.kirupa.com/t/controlling-sounds-in-a-projector/51828 "2004-05-17T18:04:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![boua5828](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@boua5828](https://forum.kirupa.com/u/boua5828)
#### Post date: [May 17, 2004, 6:04pm UTC](https://forum.kirupa.com/t/controlling-sounds-in-a-projector/51828/1 "2004-05-17T18:04:32Z")

</div>

Hi everyone. I have a Flash projector which contains links to launch external Director projectors using the \*\*fscommand(“exec”, “filename.exe”); \*\* script.

I also have an audio jukebox that streams external mp3 files. I want Flash to turn off the background music when another projector is loaded. Not too hard. I could just use the **stopAllSounds();** on my buttons. But what I can’t figure out is how to tell the Flash when the project projector is closed and the user returns to the main Flash projector. At this point I would want the music to play again.

Here is the code used to play my background music. It is attatched to frames in a movieclip residing on the main timeline.

//stops any sounds that are playing  
stopAllSounds;  
//load new sound into instance of audio\_holder  
mySound = new Sound(audio\_holder);  
mySound.loadSound(“filemane.mp3”, true);

I have been all over the internet in the last 3 days and have found nothing. Any advice would be greatly appreciated.

thanks - Andy
