I have a flash application, some kind of a play-list that loads external SWF video player (I don't have code access to that external file), so users can watch the video or skip to another one. When user switches to another video new SWF file is being loaded.
The problem: If user didn't finish watching the video and skips to the next then I unload previous SWF file (unloadAndStop()
) and load a new one. And because the previous SWF was playing it is not actually unloaded, it is still playing on the background (I hear two audio tracks: current and previous).
I tried SoundMixer.stopAll()
call, but it doesn't actually help, because of the loading on the background and and sound over the current video when it starts playing.
Is there a way to solve this from the main 'loader' application?