you could ofcourse create a loader-queue, something like this:
var queue:Array = new Array();
function load(bytesToLoad:*):void {
queue.push(bytesToLoad);
processQueue();
}
function processQueue():void {
//check if items are on queue
if (queue.length > 0) {
//create a loader
var ldr:Loader = new Loader();
//add event for loading complete
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, scriptLoaded, false, 0, true);
//load the bytes (get first item from the queue, which contains the bytes to load)
ldr.loadBytes(queue.shift(), context);
}
}
function scriptLoaded():void {
//do stuff
//process next item in queue
processQueue();
}