# Preloading one scene only

**URL:** https://forum.kirupa.com/t/preloading-one-scene-only/277474
**Category:** Uncategorized
**Created:** [December 12, 2008, 11:21am UTC](https://forum.kirupa.com/t/preloading-one-scene-only/277474 "2008-12-12T11:21:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![maxelcat](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/maxelcat/32/2854_2.png) [@maxelcat](https://forum.kirupa.com/u/maxelcat)
#### Post date: [December 12, 2008, 11:21am UTC](https://forum.kirupa.com/t/preloading-one-scene-only/277474/1 "2008-12-12T11:21:45Z")

</div>

Hi

I have a site which when exported is about 5M. (biggish) It has ab out 8 scenes, the first of which is a preloader.

On the clients server its taking about 10 second for the preloader to do its business. (On my server its taking about 3)

The preloader code is:

```auto

stop();
var myInterval:Number;
myInterval = setInterval(preloader,100);
//edBlock._xscale=50;
 
function preloader() {
 var currentBytes = _root.getBytesLoaded();
 var total = _root.getBytesTotal();
 var pctLoaded = Math.round((currentBytes/total)*100);
 pct_txt.text = pctLoaded;
 //trace ("pct="+pctLoaded);
 edBlock._xscale=pctLoaded;
 
 
 
 if (currentBytes >= total) {
  gotoAndPlay ("intro",1);
  clearInterval (myInterval);
 }
}

```

Is there some way of getting it to load say just the preloader and the next scene or two and then to load the next scenes in the background whilst the viewer gaze in wonderment at the first scene?

thanks in advance
