Can someone PLEASE explain this?!?!

Okay, I have a function, which works PERFECTLY in flash, but once I upload it, it stops workign properly. I have narrowed down the problem to when the “goingUp” function gets called. In flash it calls that function right after it counts all the clips, but once uploaded it will only call that function after all the clips have finished loading!

Which leads me to believe that maybe it won’t start loading the next clip until the previous one is finished loading??? Is that the case because that would explain why it doesn’t work then…

If that IS indeed the case, how else would I get a preloader that knows the size of all the clips involved?

Please and thank you.

Here’s my function:


MARKERSInit = function (temp) {
    totalLoaded = 0;
    var totalAmount:Number = 0;
    var loadArray = new Array("ION", "EPIPHANY", "SHOCKER", "VIBE", "SP-8");
    var numCounted:Number = 0;
    numLoaded = 0;
    for (var i:Number = 1; i < 26; i++) {
        //        trace(temp + "." + i);
        var tmp = eval(temp + "." + i);
        tmp.id = i;
        for (var j:Number = 0; j < loadArray.length; j++) {
            var tmp2 = tmp.empty_mc.createEmptyMovieClip("empty" + j, j);
            var noodle = new Object();
            var noodle1:MovieClipLoader = new MovieClipLoader();
            noodle1.addListener(noodle);
            tmp2._x -= 133 / 2;
            tmp2._y -= 48 / 2;
            tmp2._alpha = 0;
            noodle.onLoadStart = function(tmp2:MovieClip) {
                tmp2.counted = 0;
                tmp2.onEnterFrame = function() {
                    var t:Number = this.getBytesTotal();
                    var l:Number = this.getBytesLoaded();
                    if (t > 4 && this.counted == 0) {
                        totalAmount += t;
                        numCounted++;
                        this.counted = 1;
                        if (numCounted == (25 * loadArray.length)) {
                            goingUp(temp, totalAmount);
                        }
                    }
                    if (t == l && l > 4) {
                        delete this.onEnterFrame;
                        totalLoaded += l;
                        numLoaded++;
                    } else {
                        
                    }
                };
            };
            if (i <= 9) {
                noodle1.loadClip("store/" + loadArray[j] + "/images/" + loadArray[j] + "_0" + i + ".jpg", tmp2);
            } else {
                noodle1.loadClip("store/" + loadArray[j] + "/images/" + loadArray[j] + "_" + i + ".jpg", tmp2);
            }
        }
    }
};

[FONT=Courier New][/FONT]