PDA

View Full Version : [FMX] - Stopping sound when leaving HTML window



shagrat
February 27th, 2003, 01:13 PM
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

RvGaTe
February 27th, 2003, 04:34 PM
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

hmmaah
March 8th, 2007, 12:46 PM
This is a very old post, but rather than start a new one I wanted to ask if anyone knows how to do this. Its exactly what I am struggling with.

Would anyone have any suggestions on how to approach temporarily muting all sounds on an html pop-up?