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
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 = (day246060)+(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();