Mp3s Not Streaming

Hi,

Not sure what I’m doing wrong here, but instead of the mp3 streaming, it won’t start until the progress bar fully loads (timeline).

function playSong(url) {
    player_mp3["btn_pause"]["enabled"] = false;
    sndMp3["loadSound"](url, true);
    delete player_mp3["onEnterFrame"];
    player_mp3["btnPlayhead"]["_x"] = player_mp3["playHeadPos"];
    player_mp3["onEnterFrame"] = function () {
        if (sndMp3["getBytesTotal"]()>10) {
            this["timeline"]["_width"] = sndMp3["getBytesLoaded"]()/sndMp3["getBytesTotal"]()*473;
        }
        if (sndMp3["getBytesLoaded"]() == sndMp3["getBytesTotal"]()) {
            delete this["onEnterFrame"];
            startSoundTimeline();
        }
    };
    sndMp3["onLoad"] = function (success) {
        player_mp3["btn_pause"]["enabled"] = true;
        sndMp3["start"]();
        player_mp3["btn_pause"]["gotoAndStop"](1);
    };
    sndMp3["onSoundComplete"] = function (success) {
        player_mp3["btn_pause"]["gotoAndStop"](2);
        player_mp3["currentPos"] = 0;
    };
}
function startSoundTimeline() {
    delete player_mp3["onEnterFrame"];
    player_mp3["onEnterFrame"] = function () {
        this["btnPlayhead"]["_x"] = (this["playHeadPos"]+sndMp3["position"]/sndMp3["duration"]*473)-4;
    };
}

I’ve been pulling my hair out and any help with this would be greatly appreciated.

Cheers