# Undefined Text Field Error

**URL:** <https://forum.kirupa.com/t/undefined-text-field-error/60732>\
**Category:** flash\
**Created:** [August 12, 2004, 1:49am UTC](https://forum.kirupa.com/t/undefined-text-field-error/60732 "2004-08-12T01:49:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Visual\_Dialects](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/visual_dialects/32/688_2.png) [@Visual\_Dialects](https://forum.kirupa.com/u/Visual_Dialects)\
**Post date:** [August 12, 2004, 1:49am UTC](https://forum.kirupa.com/t/undefined-text-field-error/60732/1 "2004-08-12T01:49:51Z")

</div>

Hiya guys,

I’ve just changed over from using Flash 6 to Flash 7 and am having some teething problems. I have a lot of information being read from text files and brought into flash. This all worked fine when it was published as flash 6 but now I’ve changed it to flash 7 all I get in my text fields is the word **UNDEFINED**?

Here’s the code I’m using…

on (release){  
\_root.field1.html = true;  
\_root.field1.htmlText = “Please Wait Loading…”;  
myLoadVar = new LoadVars();  
myLoadVar.load(“news.txt”);  
myLoadVar.onLoad = function(success) {  
if (success == true) {  
\_root.field1.htmlText = myLoadVar.myText;  
}  
}  
}

Any bright ideas?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 12, 2004, 11:18am UTC](https://forum.kirupa.com/t/undefined-text-field-error/60732/2 "2004-08-12T11:18:58Z")

</div>

HI Dude

Well I have am not an EXPERT but i did tried your example:

and afraind was getting the same ERROR…  
but what i didnt get from your code is…:

\_root.field1.htmlText = myLoadVar.myText

Here what is myText ??

Anyways just check by putting only myLoadVar

\_root.field1.htmlText = myLoadVar

Still out is not perfect…anything u get better that this pls let me know…

ashish

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 12, 2004, 12:11pm UTC](https://forum.kirupa.com/t/undefined-text-field-error/60732/3 "2004-08-12T12:11:04Z")

</div>

Not sure, but try

```auto
on (release) {
	_root.field1.html = true;
	_root.field1.htmlText = "Please Wait Loading...";
	myLoadVar = new LoadVars();
	myLoadVar.load("news.txt");
	myLoadVar.onLoad = function(success) {
		if (success == true) {
			_root.field1.htmlText = this.myText;
		}
	};
}

```

scotty(-:
