Is there a way

Okay, a bit confusing, but I have created a Flash site using action script 3. The whole site without the “Projects” folder is 800KB. With the projects folder it’s 2.2MB.

I already created a loader that waits until the entire site is loaded before playing, but for slower connections it takes too long to load the entire site. I was just wondering if I can set my loader to load only frames 1-x, and load the rest of the frames on clicking the Projects button.

The link is Click here

The code I used for the loader is

stop();
this.addEventListener(Event.ENTER_FRAME, loading);

function loading(e:Event):void{

var total:Number = this.stage.loaderInfo.bytesTotal;
var loaded:Number = this.stage.loaderInfo.bytesLoaded;

bar_mc.scaleX = loaded/total;
loader_txt.text = Math.floor((loaded/total)*100)+ “%”;

if (total == loaded){
play();
this.removeEventListener(Event.ENTER_FRAME, loading);
}

}

Any help appreciated.