If you have ever found it troublesome to load a sequence of external movies, images, textfiles, xml files and sounds into a movie, then Kenneth Bunch has saved you precious time if ever that problem arises again in the future. He has written a free for all class and released it on the Prototype site, the LoadQue class that manages the loading of multiple external files, i use it regularly because its wicked, but i have one quibble with it, as released, it doesnt cater for the loading of external sounds, but that is easily fixed…
Replace this method:
LoadQue.prototype.$loadItem = function(){
// load item into assigned holder
if (typeof this._$currItem.item == “movieclip”){
this._$currItem.item.loadMovie(this._$currItem.url);
} else {
this._$currItem.item.load(this._$currItem.url);
}
};
With this method:
LoadQue.prototype.$loadItem = function(){
// load item into assigned holder
if (typeof this._$currItem.item == “movieclip”){
this._$currItem.item.loadMovie(this._$currItem.url);
} else if(this._$currItem.item instanceof Sound) {
this._$currItem.item.loadSound(this._$currItem.url,false)
} else {
this._$currItem.item.load(this._$currItem.url);
}
};
And Voila! you have a fully functional external file loading manager.