Loading first scene while others load in the background

Hi all, had a quick question -
The website I’m working on is a Flash swf hovering at about 2 megs, and although on a broadband connection, it still takes a few long seconds -
Is there any actionscript that can tell my preloader to display my homepage immediatley after the homepage is loaded, while the rest of my site loads in the background?
Below is my preloader code; if anyone can help me that would be eeexxcellent :slight_smile:

stop();
//preloader
st = new Date();
startSec = st.getSeconds();
startMin = st.getMinutes();
startHour = st.getHours();
startDay = st.getDay();
this.onEnterFrame = function() {
tb = this.getBytesTotal();
lb = this.getBytesLoaded();
percent = Math.round(lb/tb100);
txtpercent = percent+" %";
this.Loading_bar.Bar._xscale = percent;
tkb = Math.round(tb/1024);
txttkb = tkb+" kb total";
lkb = Math.round(lb/1024);
txtlkb = lkb+" kb loaded";
nkb = tkb-lkb;
txtnkb = nkb+" kb remaining";
nt = new Date();
sec = nt.getSeconds()-startSec;
min = nt.getMinutes()-startMin;
hour = nt.getHours()-startHour;
day = nt.getDay()-startDay;
lsec = (day
246060)+(hour6060)+(min*60)+sec;
txtlsec = lsec+" sec elapsed";
speed = Math.round((lkb/lsec)*10)/10;
txtspeed = speed+" kb/s";
nsec = Math.round(nkb/speed);
txtnsec = nsec+" sec remaining";
if (lb>=tb) {
delete this.onEnterFrame;
txtspeed = “0 kb/s”;
nextFrame();
}
};
stop();

Hoi

ok well
flash loads from start to end loading the mc,btn’s when flash meets then on the maintime line
so if you laat it load to 50%(or less) then the home page ,if its in the first frame, will beloaded


stop();
//preloader
st = new Date();
startSec = st.getSeconds();
startMin = st.getMinutes();
startHour = st.getHours();
startDay = st.getDay();
this.onEnterFrame = function() {
tb = this.getBytesTotal()/2;// now it will ownly preload half the movie
lb = this.getBytesLoaded();
percent = Math.round(lb/tb*100);
txtpercent = percent+" %";
this.Loading_bar.Bar._xscale = percent;
tkb = Math.round(tb/1024);
txttkb = tkb+" kb total";
lkb = Math.round(lb/1024);
txtlkb = lkb+" kb loaded";
nkb = tkb-lkb;
txtnkb = nkb+" kb remaining";
nt = new Date();
sec = nt.getSeconds()-startSec;
min = nt.getMinutes()-startMin;
hour = nt.getHours()-startHour;
day = nt.getDay()-startDay;
lsec = (day*24*60*60)+(hour*60*60)+(min*60)+sec;
txtlsec = lsec+" sec elapsed";
speed = Math.round((lkb/lsec)*10)/10;
txtspeed = speed+" kb/s";
nsec = Math.round(nkb/speed);
txtnsec = nsec+" sec remaining";
if (lb>=tb {
delete this.onEnterFrame;
txtspeed = "0 kb/s";
nextFrame();
}
};
stop();

and please use

, 
```php
 or 

tags when posting code it makes it easyer the read :wink:

Hey Master 64, THANK YOU THANK YOU- you saved my arse!

-future_pilot