darthmahon
12-21-2004, 02:55 PM
Hey,
Posted this in the wrong place first off, so posting again to the correct place.
Ok I am using Flash MX 2004 to play a flv video file for a clients interview. Now, having a slight problem.
I am loading the video into a new level, using this on the button:
on (release) {
// unload anything in gallery
unloadMovieNum(2);
// load new movies
loadMovie("interview_play.swf", 2);
}
Now, this starts playing the interview using the media component etc, that works fine. Thing is, if I go to another section within the site I obviously want to remove this video, I don't want it to play anymore. So I use the following on the other menu buttons.
unloadMovieNum(2);
Now, this remove the interview from being seen, but the audio keeps playing!
I thought I could just stop the sound but this doesn't do anything:
_level2.stopAllSounds();
What's going on? How can I completely remove this video interview?
Cheers,
Chris
Posted this in the wrong place first off, so posting again to the correct place.
Ok I am using Flash MX 2004 to play a flv video file for a clients interview. Now, having a slight problem.
I am loading the video into a new level, using this on the button:
on (release) {
// unload anything in gallery
unloadMovieNum(2);
// load new movies
loadMovie("interview_play.swf", 2);
}
Now, this starts playing the interview using the media component etc, that works fine. Thing is, if I go to another section within the site I obviously want to remove this video, I don't want it to play anymore. So I use the following on the other menu buttons.
unloadMovieNum(2);
Now, this remove the interview from being seen, but the audio keeps playing!
I thought I could just stop the sound but this doesn't do anything:
_level2.stopAllSounds();
What's going on? How can I completely remove this video interview?
Cheers,
Chris