# LoadVars flashing "undefined" in text box

**URL:** <https://forum.kirupa.com/t/loadvars-flashing-undefined-in-text-box/172260>\
**Category:** flash\
**Created:** [December 12, 2005, 9:29pm UTC](https://forum.kirupa.com/t/loadvars-flashing-undefined-in-text-box/172260 "2005-12-12T21:29:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lotsamottsa](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@lotsamottsa](https://forum.kirupa.com/u/lotsamottsa)\
**Post date:** [December 12, 2005, 9:29pm UTC](https://forum.kirupa.com/t/loadvars-flashing-undefined-in-text-box/172260/1 "2005-12-12T21:29:13Z")

</div>

Hello, I have a situation here, that I can’t figure out.

I have a main movie with:

var externalData:LoadVars = new LoadVars();  
externalData.onLoad = function(success:Boolean) {  
if (success) {  
rcopy\_txt.text = externalData.rhomecopy;  
trace (“success”);  
}  
};  
externalData.load(“rhomecopy.txt”);

when first coming to the scene there is no “undefined” message and the text file loads fine.

However, my external swfs loading on buttons have this code on it’s third frame (after the first two for preloader):

this.onEnterFrame = function(){  
\_root.rcopy\_txt.text = \_root.externalData.rcraftscopy;  
}  
\_root.externalData.load(“rcraftscopy.txt”);

**When these files load the text box flashes (“undefined”) and then loads the text. Any ideas on how to fix that? Here’s a link to the site.**

[surroundings-rogersgallery.com](http://surroundings-rogersgallery.com)
