# Unloading a preloader

**URL:** <https://forum.kirupa.com/t/unloading-a-preloader/299517>\
**Category:** flash\
**Created:** [November 6, 2009, 2:59am UTC](https://forum.kirupa.com/t/unloading-a-preloader/299517 "2009-11-06T02:59:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdq](https://avatars.discourse-cdn.com/v4/letter/t/f6c823/32.png) [@tdq](https://forum.kirupa.com/u/tdq)\
**Post date:** [November 6, 2009, 2:59am UTC](https://forum.kirupa.com/t/unloading-a-preloader/299517/1 "2009-11-06T02:59:34Z")

</div>

I have a “portfolio” which loads some projects I’ve been playing with.  
Some of these are reasonably large, so I use a preloader to load them.  
So, for example, in portfolio.swf, press button1, use a loader class to load ex1preloader.swf which loads ex1.swf.  
Press button2, I unloadAndStop the loader, then load ex2preloader.swf which loads ex2.swf,  
and so on. So far so good, all works fine.

The problem I’m having is if I click button2 before button1 preloader has finished loading, the unload seems to unload the preloader, but not the ex1.swf (I can tell as the sounds keep going - some of which only get triggered when the code executes).  
This is _only_ a problem if I interrupt at the preload stage - if it succesfully loads ex1.swf, everything is ok, even if I then interrupt ex1.swf.

It seems like the preloader gets unloaded, but not what _it_ is loading.

Clear as mud?
