Rotating Header - Load Random External .swfs

Could anyone point me in the right direction on this:

I’d like to make a “main” flash movie to load external .swfs.
It’s not a problem to make it load a random external .swf but how could I make the loaded .swfs randomly load another .swf on the root at the end of its timeline?