# \[FMX\] - Stopping sound when leaving HTML window

**URL:** <https://forum.kirupa.com/t/fmx-stopping-sound-when-leaving-html-window/14550>\
**Category:** flash\
**Created:** [February 27, 2003, 6:13pm UTC](https://forum.kirupa.com/t/fmx-stopping-sound-when-leaving-html-window/14550 "2003-02-27T18:13:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shagrat](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@shagrat](https://forum.kirupa.com/u/shagrat)\
**Post date:** [February 27, 2003, 6:13pm UTC](https://forum.kirupa.com/t/fmx-stopping-sound-when-leaving-html-window/14550/1 "2003-02-27T18:13:56Z")

</div>

Ok. Some may call me a daydreamer, an idiot, whatever. But there’s something I just have to know:

Here’s the situation. You have a HTML file (A), which contains a Flash file with some background music looping, and a button which activates a HTML pop-up window (B).  
Now. Is there any possibillity by actions script, java, anything; to mute the sound when you leave HTML file A and go to B, and then un-mute the sound when you later return to A?

Shagrat

---

<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 27, 2003, 9:34pm UTC](https://forum.kirupa.com/t/fmx-stopping-sound-when-leaving-html-window/14550/2 "2003-02-27T21:34:47Z")

</div>

you could try using an switch, something like:

when you click an hyperlink and go outside, try to knock the sound down… and place an huge transparent button on the top of your stage, so when the viewer comes back to your screen, it will automaticly click the button when he wants to go somewere inside your page… and then let the music play…

maybe it works, dont know for sure
