# External text returns undefined

**URL:** https://forum.kirupa.com/t/external-text-returns-undefined/86716
**Category:** Uncategorized
**Created:** [April 15, 2005, 1:52am UTC](https://forum.kirupa.com/t/external-text-returns-undefined/86716 "2005-04-15T01:52:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![b\_lauren](https://avatars.discourse-cdn.com/v4/letter/b/b38774/32.png) [@b\_lauren](https://forum.kirupa.com/u/b_lauren)
#### Post date: [April 15, 2005, 1:52am UTC](https://forum.kirupa.com/t/external-text-returns-undefined/86716/1 "2005-04-15T01:52:35Z")

</div>

ok - i have an external txt file

saved in the same folder as the swfs that i am loading the text into

one of them is working fine

and the other is not

working

```auto
 
loadText = new LoadVars();
loadText.load("impack.txt");
loadText.onLoad = function(success) {
	if (success) {
		welcome.text = this.welcome;
  welcome.html = true;
  welcome.htmlText = this.welcome;
  
	};
}; 

```

not working

```auto
 
loadText = new LoadVars();
loadText.load("impack.txt");
loadText.onLoad = function(success) {
	if (success) {
		aone.text = aone;
  aone.html = true;
  aone.htmlText = aone;
  };
  if (success) {
		atwo.text = _root.atwo;
  atwo.html = true;
  atwo.htmlText = _root.atwo;
  };
 if (success) {
		athree.text = _root.athree;
  athree.html = true;
  athree.htmlText = _root.athree;
  };
  if (success) {
		afour.text = _root.afour;
  afour.html = true;
  afour.htmlText = _root.afour;
  };
  if (success) {
		afive.text = _root.afive;
  afive.html = true;
  afive.htmlText = _root.afive;
  
	};
  
 
}; 

```

i’ve tried using \_root. and -parent. but to no avail!
