Preloading an array

I have done this tutorial here at kirupa for transitions. My problem is that I am also using a swf file that has an array that calls in jpegs dynamically. So, how can I modify the preloader script to also include the dynamically loading jpegs as well as preloading normal swf files? Here is the script that is inside the swf that is calling the jpegs.


var imgList:Array = new Array();
imgList[0] = "images/coral.jpg";
imgList[1] = "images/horizon.jpg";
imgList[2] = "images/resort.jpg";
imgList[3] = "images/sunset.jpg";
imgList[4] = "images/sunset.jpg";
function chooseTheString() {
	randomPic = random(imgList.length-1);
	_root.holder.loadMovie(_root.imgList[randomPic]);
}
chooseTheString();
stop();