I have a Flash video in my Flash file. The video plays properly when clicked on. However, the video's audio continues to play when another button/portion of the site is clicked on. A user could be on a different Flash page, while the audio from the video continues to play. The audio doesn't stop.
How can this be fixed? What would the code and/or direct steps be to fix this?
In Flash you can use the stopAllSounds(); command. However, even this will not help always. The problem is with the browser's cache, where it loads typical multimedia content. When you quit playing some Flash file for instance, this content is set up for so called 'garbage collection'. This is a background task, and in some cases it is not immediate. This is the reason why some sounds will continue playing, and: it's not much Flash can do about it!
This problem is much worse in MS Internet Explorer. I have observed as long as five seconds delay here. Firefox, opera and Chrome is faster, or even instant. As far as I know, the intervals for 'garbage collection' is hard-coded (i.e. set once and for all by Microsoft) in IE and nothing we can do anything about.
Not everything that can be counted counts, and not everything that counts can be counted.