# Sound off on popup?

**URL:** <https://forum.kirupa.com/t/sound-off-on-popup/12753>\
**Category:** Uncategorized\
**Created:** [February 4, 2003, 10:35am UTC](https://forum.kirupa.com/t/sound-off-on-popup/12753 "2003-02-04T10:35:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![elietabet](https://avatars.discourse-cdn.com/v4/letter/e/a9a28c/32.png) [@elietabet](https://forum.kirupa.com/u/elietabet)\
**Post date:** [February 4, 2003, 10:35am UTC](https://forum.kirupa.com/t/sound-off-on-popup/12753/1 "2003-02-04T10:35:04Z")

</div>

- i have page1 with an “enter” button which popup page2 in  
Chromless.

- page2 has a background music with an on/off button.  
(when poped, the music starts on page2)

now,  
i want to add a sound to page1.  
but i want this sound to be turned off when the visitor click on enter to launch page2.  
(so that he will only hear the music of page2.)

can this be done !!!

(all pages are .SWF, no HTML or JS)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 4, 2003, 4:42pm UTC](https://forum.kirupa.com/t/sound-off-on-popup/12753/2 "2003-02-04T16:42:18Z")

</div>

first of… it’s better to have NO flash or music on your entry page.

that’s the page where you check if people have the plugin and can actually see your site.

anyway… you can try this on the button at page one…

on (release) {  
stopAllSounds();  
}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 4, 2003, 10:45pm UTC](https://forum.kirupa.com/t/sound-off-on-popup/12753/3 "2003-02-04T22:45:38Z")

</div>

yu are right. i changed my mind now.

but since you mentioned that, stopallsounds will also stop the background music when the page2 poped up, no?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 5, 2003, 7:34am UTC](https://forum.kirupa.com/t/sound-off-on-popup/12753/4 "2003-02-05T07:34:40Z")

</div>

good you changed your mind:)…

about the stopAllsounds… it would stop the sounds that are playing at that moment…  
but since there was gonna be a new sound starting on your second page it would have had no effect on that one.

anyway there are a few ways to play soundfiles in flash…  
I usualy put my sounds in separate swf’s that I load with loadMovie command… unloadMovie to stop the sound;)

gl

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 5, 2003, 8:50am UTC](https://forum.kirupa.com/t/sound-off-on-popup/12753/5 "2003-02-05T08:50:05Z")

</div>

i have posted a new thread about switching buttons.  
can you help in that?? the guy who replied, didnt help a lot.
