# Trouble with loader class

**URL:** <https://forum.kirupa.com/t/trouble-with-loader-class/314256>\
**Category:** flash\
**Created:** [September 22, 2010, 10:53pm UTC](https://forum.kirupa.com/t/trouble-with-loader-class/314256 "2010-09-22T22:53:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frosteh](https://avatars.discourse-cdn.com/v4/letter/f/c0e974/32.png) [@Frosteh](https://forum.kirupa.com/u/Frosteh)\
**Post date:** [September 22, 2010, 10:53pm UTC](https://forum.kirupa.com/t/trouble-with-loader-class/314256/1 "2010-09-22T22:53:07Z")

</div>

I’ve got a website that I’m building and I’m having a bit of trouble with the loader. Basically I’ve got 3 .swf files that make up the website. 1) Preloader. 2) Site 1. 3) Site 2. The website is rather large, with each site having 5 or six of its own pages, so I’m splitting it into 2 swf’s so they’re easier to manage. Basically what happens, is at the end of the preloader, there is a selector screen that lets the user choose which site to go to. This is where I have my problems. When they click on one of the buttons to go to a site, the site shows up momentarily and then the preloader restarts. I want it to stay on that swf when they click on it.

Here is my code for the loader:

```auto

var airsoftLoader:Loader = new Loader(); 
addChild(airsoftLoader); 
var url:URLRequest = new URLRequest("airsoftsite.swf");
airsoftLoader.load(url);

```
