loadSound question

Hi all!

I have a real quick question about the loadSound method. Is it possible to restart a stopped dynamically loaded, streaming sound? I’ll try to explain this better with some actionscript snippets:

This is on the main timeline and starts the file playing as soon as the movie file loads. pausePos holds the time in seconds that the file was paused at. This part works fine.

paused = false;
pausePos = 0;
mySound = new Sound();
playing = true;

The play button right now is only meant to handle the situations after the file has been paused (i.e. it’s not used for starting). This is where the problem arises as the file simply never starts playing again after it is paused.

on (release) {
if (_root.playing && _root.paused) {
_root.paused = false;

This is the code for the pause button. It does indeed stop the file and correctly record the pause time.

on (release) {
if (_root.playing) {
_root.pausePos = _root.mySound.position/1000;
_root.paused = true;

Any help on this matter would be greatly appreciated. Thanks! :slight_smile: