How to remove previous SWF file

I have downloaded a slideshow xml example to load any jpeg files but I want to be able to load a collection of .swf files as well.

Here’s example that I downloaded: http://simplistika.com/as3-xml-thumbnail-photo-gallery/

The issue that I’m having is while clicking to next thumbnail, I can still the previous SWF file loaded collapsed in back of new SWF file.

Does anyone know how to remove that?