# level0.loadText -\> huh?

**URL:** <https://forum.kirupa.com/t/level0-loadtext-huh/155414>\
**Category:** flash\
**Created:** [July 17, 2005, 2:12pm UTC](https://forum.kirupa.com/t/level0-loadtext-huh/155414 "2005-07-17T14:12:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThePaleHunter](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@ThePaleHunter](https://forum.kirupa.com/u/ThePaleHunter)\
**Post date:** [July 17, 2005, 2:12pm UTC](https://forum.kirupa.com/t/level0-loadtext-huh/155414/1 "2005-07-17T14:12:30Z")

</div>

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);  
}
