# Text box returns boolean before loading text

**URL:** https://forum.kirupa.com/t/text-box-returns-boolean-before-loading-text/172359
**Category:** Uncategorized
**Created:** [December 13, 2005, 5:36pm UTC](https://forum.kirupa.com/t/text-box-returns-boolean-before-loading-text/172359 "2005-12-13T17:36:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Pneumonic](https://avatars.discourse-cdn.com/v4/letter/p/aeb1de/32.png) [@Pneumonic](https://forum.kirupa.com/u/Pneumonic)
#### Post date: [December 13, 2005, 5:36pm UTC](https://forum.kirupa.com/t/text-box-returns-boolean-before-loading-text/172359/1 "2005-12-13T17:36:15Z")

</div>

I’ve got a function which onRollOver kills one text and displays another. Now for some reason it flashes the word “true” in the textbox everytime this change occurs. Anyone know why this would be? here’s my as:

```auto

loadText = function(){
	txt_data = new LoadVars();
	txt_data.onLoad = function(){
		store_txt.html = true;
		store_txt.htmlText = this.content;
	}
}
_root.createEmptyMovieClip("txt_killer", 5);
txt_killer.onEnterFrame = function(){
	loadText();
	txt_data.load("../text/store.txt");
}
ugstore.onRollOver = function(){
	_root.ugstore.gotoAndPlay("rotate");
	playSoundOver();
	delete txt_killer.onEnterFrame();
	txt_killer.removeMovieClip();
	loadText();
	cur_text = txt_data.load("../text/ugstore.txt");
	store_txt.text = cur_text;
	ugstore_txt.text = "UG Store";
	blueFormat();
	ugstore_txt.setTextFormat(textFormat);
}
ugstore.onRollOut = function(){
	_root.ugstore.gotoAndPlay("back");
	loadText();
	cur_text = txt_data.load("../text/store.txt");
	store_txt.text = cur_text;
	ugstore_txt.text = "UG Store";
}

```

The script loads everything fine, it just adds that statement for whatever reason. If anyone knows please let me know. Also, I realize this may not be the most elegant way of doing it, it just happened to be the way I figured out that worked. If there’s a better way, let me know! Thanks in advance.
