Help unload/remove previous swf file

I’m confused about how to remove the previous load swf file.like i have this image.swf that loaded first then that image is a button so when i click that button it will load another swf file, my problem is that, the image.swf file still viewable when you load the 2ns swf file. how could i completely remove the image.swf file? i found some codes, but it was not completely working on removing the previous loaded swf file.

thanks a lot