Sound not stopping in embedded flash animation
Hello everyone!
I made an intro for my e-learning module in Flash containing some sounds, including a song that stops and re-starts some seconds later in the same position.
The code is something like this:
Frame 1:
var BGmusic:Sound = new music();
var ModuleSound:SoundChannel = new SoundChannel();
ModuleSound = BGmusic.play();
Frame 1140:
var position:int = ModuleSound.position;
ModuleSound.stop();
Frame 1470:
ModuleSound = BGmusic.play(position,0);
It works flawlessly in Flash, but when I embed the animation in my Captivate file, the code in Frame 1140 is not working anymore. Not to say that once in frame 1470 the sound starts in a new channel and I've got two songs annoyingly playing at the same time in different positions.
Any ideas about how to solve this issue?