Sequentially running loaded swfs (not a preloader question!)

This is what I’m trying to achieve:

A swf loads into a movie clip; it plays; it unloads; a new swf loads and the cycle continues.

I’ve checked a number of resources, and I’ve tried the best I can to get this to work, and here’s the closest thing I come up with:

var loaded = false;
function loadItUp() {
swfHolder._alpha = 100;
filename = [“testLoop1.swf”, “testLoop2.swf”, “testLoop3.swf”, “testLoop4.swf”, “testLoop5.swf”];
i = filename.length;
k = Math.floor(Math.random() * i);
loadMovie(filename[k], swfHolder);
loaded = true;
}
function unloadIt() {
if (loaded = true) {
swfHolder.unloadMovie();
loaded = false;
}
clearInterval(unloadTimer);
gotoAndPlay.start();
}
loadItUp();
unloadTimer = setInterval(unloadIt, 10000);

I was thinking (hoping?) the var loaded=true/false condition would cause the functions to cycle, but it doesn’t. I suspect a “for” loop is what I need here, but i haven’t been able to puzzle it out. Can anyone lend a suggestion? Thanks as always!