XML Slideshow, alternating file types

Hey everyone. I know how to load in .jpg and .swf files via XML, but the issue in which I want to cover is to have the two alternate. See what I’m going is I’m going to have a quote show up (animated in SWF) then once that finishes, it fades into a JPG. That will in turn fade back to another SWF and then the cycle continues.

These will be loaded randomly, but I would like it if I were able to keep it in that order of random swf, then random image, then random SWF and back again.

Does anyone know of something that sort of does this so I can try to build it into my project? Thanks ahead of time.