Ok, here is what I have. I have a scene with multiple stops (call it 5 for this example). Each stop has a voice over bit that plays. I have a pause and play button that pauses and plays the animation and the sound. I have Next and Previous buttons that let the user move to the different stops.
The pause and play is working great by itself. The next and previous buttons were working great before I added the sound.
Now, when I hit “next” for instance, and go to the next stop, the current sound playing stops and the next bit of VO plays just like it is supposed to. However, if i try to go back, the sound just stops all togoether.
Here is the AS that I have on the start of each section of the scene:
mySoundPosition=_root.compassSound3.position;
_root.compassSound3.start(mySoundPosition,0);
_root.compassSound3.onSoundComplete = function(){
_root.compassSound3.stop();
gotoAndPlay("next")
};
Here is the AS on the Next button:
on (press) {
_root.compassSound3.stop();
gotoAndPlay("traditional");
}
Here is the AS I have on the Previous button in the next section:
on (press) {
_root.compassSound4.stop();
gotoAndPlay("start");
}