Ok, so my sound loops wonderfully when I just let it play. And, my sound would loop perfectly if I set up just start and stop buttons to control it.
But, here’s the problem. I want the “stop” button to function as a “pause” button rather than a “stop” button.
so I did that like this:
mcPlay.onRelease = function():Void {
sndAudio.start(sndAudio.position/1000,99);
};
mcPause.onRelease = function():Void {
sndAudio.stop();
};
So now, it pauses and plays perfectly, the problem is that when it gets to the end of the sound file, it loops back to the last point it was “un-paused” rather than looping back to the beginning of the sound file. Make sense?
Has anyone come across this before? How can I get it to loop back to the beginning no matter when it was paused?
Thanks in advance!!
Fitz