My preloader, which works correctly right up through 100% completion, has a strange problem I can’t seem to resolve on my own (highly unusual, I know). It seems that the last command I give it, to display a bit of text when bytesLoaded == bytesTotal, is instead being displayed as level0.loadText.
Does this mean my reference to my loadText movie is too high or too low in level? Also, why does this.loadText = (getPercent…yadda yadda) work when displaying numbers but not the final string?
Any help would of course be rewarded by my writing “Thanks”, a grand prize indeed.
For those with a keener eye for code than myself, here is what I’ve written:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
loadText = “Sacrificed”;
this.gotoAndStop(3);
}