# Cannot load text into dynamic text box! HELP!

**URL:** <https://forum.kirupa.com/t/cannot-load-text-into-dynamic-text-box-help/195206>\
**Category:** flash\
**Created:** [July 29, 2006, 4:52pm UTC](https://forum.kirupa.com/t/cannot-load-text-into-dynamic-text-box-help/195206 "2006-07-29T16:52:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dezamp](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@dezamp](https://forum.kirupa.com/u/dezamp)\
**Post date:** [July 29, 2006, 4:52pm UTC](https://forum.kirupa.com/t/cannot-load-text-into-dynamic-text-box-help/195206/1 "2006-07-29T16:52:31Z")

</div>

I am currently using this code…

```auto
loadText = new LoadVars();
loadText.load("info.txt");
loadText.onLoad = function(success) {
	if (success) {
		// trace(success);
		titleTxt.html = true;
		titleTxt.htmlText = this.titleX;
		}
};

```

…but it doesn’t work! It just says undefined in the text box. The variable of the text box is declared as ‘titleTxt’ and the variable in the .txt file is ‘titleX’. I don’t understand! HELP!
