Loader class is slowing me down - PLEASE HELP!

Hello everyone.
I’m doing a project that requires a lot of thumbs (around 1500) to be on the stage at the same time. I want to load one, and once that one is loaded, load the next one. I did it with the Loader class, but it takes forever to load all of them, even if all thumbs are cached. It seems like the Loader class takes a lot of time to register that whatever it was loading has finished loading. Anyway, this is pretty much what I’m doing:


stage.addEventListener("click", doIt);
var myloader;
var k = 1;
function doIt(ev) {
    if (k <= 1500) {
        myloader = new Loader();
        myloader.load(new URLRequest(k + ".jpg"));
        myloader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
        addChild(myloader);
        k++;
    } else {
        trace("done");
    }
}

function loadComplete(ev) {
    doIt("whatever");
}

It takes about 2 minutes to complete, running this locally with all thumbs cached, which is ABSURD.

But, if I just call the “doIt” function recursively, the whole thing takes like 2 seconds to load all of them. So I guess what makes the whole thing incredibly slow is the use of the Loader class, with the event listener.

This is something very common in Flash. It’s not complicated at all, so I really don’t see why it takes so long.

Any ideas on why this is happening? Or any suggestions on how I could do this faster?
I would really appreciate it.

[EDIT] I forgot to mention that if I put the function call in a loadStart, loadProgress, or loadInit event function the same thing still happens. I’m guessing the delay is not related to completing the loading, but just to dispatching an event for a Loader object. [/EDIT]