# Loading text variables....not working

**URL:** <https://forum.kirupa.com/t/loading-text-variables-not-working/164518>\
**Category:** Uncategorized\
**Created:** [October 2, 2005, 8:33am UTC](https://forum.kirupa.com/t/loading-text-variables-not-working/164518 "2005-10-02T08:33:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kepler](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@kepler](https://forum.kirupa.com/u/kepler)\
**Post date:** [October 2, 2005, 8:33am UTC](https://forum.kirupa.com/t/loading-text-variables-not-working/164518/1 "2005-10-02T08:33:23Z")

</div>

Hi,

First of all I would like to say hello to everyone since I’m new here.

I got this problem, loading a variable from a text file, intro.txt. The text file is as follows:

```auto
 
&bodytext=bla bla bla&&textloaded=OK&

```

The code in the button that loads the variable value into containerMC.daTextBox is like this:

```auto
 
on (release)
{
	System.useCodepage = true;
	loadText = new loadVars();
	loadText.load("intro.txt");
	loadText.onLoad = function(success) {
		if (success) {
			// trace(success);
			_root.containerMC.daTextBox=/:bodytext;
		}
	};
titleMC.Title1 = "HOME";
titleMC.Title2 = "HOME";
titleMC.gotoAndPlay(2);
}

```

But nothing appears (bla bla bla). I’ve also tryed “this.bodytext”, and it doesn’t work. If I place, for example, “test” then it appears.

Any idea on what I’m doing wrong?

Kind regards,

Kepler
