# unLoad current Swf and load new Swf

**URL:** <https://forum.kirupa.com/t/unload-current-swf-and-load-new-swf/221013>\
**Category:** flash\
**Created:** [March 31, 2007, 4:01pm UTC](https://forum.kirupa.com/t/unload-current-swf-and-load-new-swf/221013 "2007-03-31T16:01:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kdowling](https://avatars.discourse-cdn.com/v4/letter/k/c68b51/32.png) [@kdowling](https://forum.kirupa.com/u/kdowling)\
**Post date:** [March 31, 2007, 4:01pm UTC](https://forum.kirupa.com/t/unload-current-swf-and-load-new-swf/221013/1 "2007-03-31T16:01:39Z")

</div>

Hi,

i have a photo gallery of thumbnails in one swf (wedding\_scroller.swf) and when i click on the thumbnails I want to unload the thumbnail swf and load in a new swf with the larger image (wedding\_large.swf). I cant seem to get it right. I can load in the the new swf but the thumbnail swf stays there. this is the code i am using on one of the thumnail images:

on (release) {  
unloadMovie(“wedding\_scroller.swf”);  
loadMovie(“wedding\_large.swf”,2);  
}

also when wedding\_large.swf loads I want it to go to frame 2.

any help would be appreciated.

thanks
