Using this preloader tutorial.
I’ve used this preloader before without any troubles, but for some reason now it is stuffing up…
I’ve followed all the steps… and it’s working more or less, exept that I can’t see the load bar or the load text until it’s about 40% loaded. Then it appears.
The whole swf is only 647kb big, so it isn’t really a lot to load…
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
i changed this:
this.loadBar._width = getPercent*100;
to this:
this.loadBar._height = getPercent*172.7;
to suit my needs. I don’t think the variable change is the problem though… other than that, all is good.
Does anyone know what the problem could be? It’s really annoying. You just see nothing up until it has loaded about 40% and then the preloader jumps in at that % and continues to load up till 100.