View Full Version : 3kb to big for a preloader?
mindfriction
March 3rd, 2004, 03:01 AM
Just quickly, I recently made my own preloader component. It's about 3kb in size, there is slight delay over a 56k modem, 2-4 secs. Is that not good from a user point of view or am I being too anal about this ?
ScriptFlipper
March 3rd, 2004, 03:06 AM
I wouldn't consider 3kb a problematic size at all...
kode
March 3rd, 2004, 03:16 AM
Definitely, you're worring too much about it. I'd say 3 KB is pretty good. ;)
mindfriction
March 3rd, 2004, 03:34 AM
yeah ty guys, haha stressing about nothing..its just like me :hair: ....
Hey you guys wouldn't have any better ways to animate a 'swirl' in the preloader bar so it looks like the Mac OS preloader ?
Here ive used AS as created by Ilyas for for his infinite menu tweening to move a swirl image
.......
.......
var bLoaded = (this[this.targetClip].getBytesLoaded()/1024);
var bTotal = (this[this.targetClip].getBytesTotal()/1024);
var loadPercent = Math.floor((bLoaded/bTotal)*100);
this.loadBar_mc._xscale = loadPercent;
this.label_txt.text = loadPercent+" %";
this.swirl_mc.setMask(this.loadBar_mc);
this.swirl_mc._x+=10;
if (this.swirl_mc._x > 0) this.swirl_mc._x=-115;
if (this.swirl_mc._x < -115) this.swirl_mc._x=0;
if ((bLoaded==bTotal) && (bTotal>1)) {
this._visible = false;
play();
}
};
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.