# Loading and Unloading .SWF files

**URL:** <https://forum.kirupa.com/t/loading-and-unloading-swf-files/296191>\
**Category:** flash\
**Created:** [September 10, 2009, 4:30pm UTC](https://forum.kirupa.com/t/loading-and-unloading-swf-files/296191 "2009-09-10T16:30:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackOD](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@jackOD](https://forum.kirupa.com/u/jackOD)\
**Post date:** [September 10, 2009, 4:30pm UTC](https://forum.kirupa.com/t/loading-and-unloading-swf-files/296191/1 "2009-09-10T16:30:28Z")

</div>

I have created a site using the most basic amount of AS possible because i am new to it and am just finding my feet, i thought i might be able to get away with using just button links and slideshows but now my site is getting very big and is taking a while to load, i have added a preloader to the beginning of the site in a different scene.

On my second frame i have a external .SWF file being loaded, it loads just fine but when i navigate away from the frame it is still there on every frame.

i would very much appreciate the help as this is very stressfull.

here is my code for the frame;  
//////

\*var SlideshowURL:URLRequest = new URLRequest(“Slideshow.swf”);  
var SlideshowLoader:Loader = new Loader();  
SlideshowLoader.load(SlideshowURL);  
addChild(SlideshowLoader);  
SlideshowLoader.x = 587.0;  
SlideshowLoader.y = 268.7;

stop();\*

//////

also if anybody knows a simple way i would like a progress indicator on this too but if its too much trouble then please help with my original question.  
thanks
