Preloader AS, Please Help Before I have a Nervous Breakdown

April 24th, 2007

Hello Flash Guru’s I am having a fit trying to make a preloader work at all. Admittedly, I am more attuned to making things look pretty, but I am really trying hard to learn to become an AS geek.

Anyway, I have a progress bar which refuses to show up when I test it for DSL in the bandwidth profiler or on the site. The problem is, even though the progress bar fails to show up it still takes about three (3) seconds for the rest of the site to show up.

If you would like I can email the files to you.

AS

onClipEvent (load) {
    total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
    loaded = _root.getBytesLoaded();
    percent = int( loaded / total * 100);
    text = "Loaded " + percent + "%";
    gotoAndStop(percent);
    if (loaded == total) {
        _root.gotoAndPlay(2);
    }
}

Any help would be appreciated.

Frustratedly Yours,

Alli