# Help unload/remove previous swf file

**URL:** https://forum.kirupa.com/t/help-unload-remove-previous-swf-file/306901
**Category:** flash
**Created:** [March 24, 2010, 9:01am UTC](https://forum.kirupa.com/t/help-unload-remove-previous-swf-file/306901 "2010-03-24T09:01:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sansrival](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sansrival](https://forum.kirupa.com/u/sansrival)
#### Post date: [March 24, 2010, 9:01am UTC](https://forum.kirupa.com/t/help-unload-remove-previous-swf-file/306901/1 "2010-03-24T09:01:39Z")

</div>

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 ![](http://forum.kirupa.com/uploads/kirupa/1495/f1fea26928e562b8.gif)
