AS2.0 - comparing differences in 2 flash sites preloaders
i have recently done a flashsite for 2 artists (one page each). both have picture galleries constructed in a simmilar manner, which are a bit heavy for dial-up surfers (being a bit more than 8mb). i made preloaders for both sites based on the same code.
one one site the preloader shows for a fair amount of time (36 seconds to more than a minute, depending on which computer it loads on) while the other shows the preloader for only a few seconds (about 3 seconds) before displaying the content.
here are the websites, some stats and the code for you to see and compare the difference
http://www.tarmotristanteng.com/Art/index.html
flash is 8.9mb in one swf file
this site takes longer to load / shows preloader during entire loading period and only shows content following reaching 100% loaded state.
Code:
this.onEnterFrame = function() {
var amount:Number = this.getBytesLoaded() / this.getBytesTotal() * 100;
preloader._xscale = amount;
if(amount == 100) {
this.gotoAndPlay(3);
delete this.onEnterFrame;
}
}
http://www.daviscremar.com/photography/index.html
flash is 8.6 mb in one swf file
this site shows the preloader for a shorter duration of time, does not show bar reach 100% before displaying first content frame.
Code:
this.onEnterFrame = function() {
var amount:Number = this.getBytesLoaded() / this.getBytesTotal() * 100;
preload._xscale = amount;
if(amount == 100) {
this.gotoAndPlay(3);
delete this.onEnterFrame;
}
}
are similar results occurring on others computers? what may the difference be that these two pages differ in load time so vastly?
:?