MP3 Player Problem - Streatming Song Restarts One Fully Loaded

Has anyone else had this problem? I have a very simple Flash/XML MP3 player:

http://stevespatucci.com/pms/musictest

You click on one of the song bars, and the bar loads an external .mp3 into the actual player (the Play/Pause button element) - Streaming is set to “true”.

Here’s the problem: once the song fully loads (it will come up as “TRUE” onscreen), the song restarts. I’m not sure if it’s something in the code, or if it’s inherent to these kinds of players.

Any help would be appreciated - thanks! Here’s the code:


delete sound;

var musicPlays:Boolean = false;

var songTrack:Sound = new Sound();
songTrack.onLoad = function(success:Boolean) {
if (success) {
_root.success = success;
songTrack.start(0, 999);
musicPlays = true;
musicPlayer.gotoAndStop(“playing”);
} else {
musicPlayer.gotoAndStop(“loading”);
}
};

songTrack.loadSound(_root.link[buttonNum], true);

musicPlayer.playStop.onPress = function ():Void {
trace(musicPlays);
if (musicPlays) {
this._parent.gotoAndStop(“stopped”);
songTrack.stop();
musicPlays = false;
} else {
this._parent.gotoAndStop(“playing”);
songTrack.start(0, 999);
musicPlays = true;
}
};