# Need help loading text - having trouble with path

**URL:** <https://forum.kirupa.com/t/need-help-loading-text-having-trouble-with-path/163452>\
**Category:** flash\
**Created:** [September 22, 2005, 2:38pm UTC](https://forum.kirupa.com/t/need-help-loading-text-having-trouble-with-path/163452 "2005-09-22T14:38:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vickmedia](https://avatars.discourse-cdn.com/v4/letter/v/ee59a6/32.png) [@vickmedia](https://forum.kirupa.com/u/vickmedia)\
**Post date:** [September 22, 2005, 2:38pm UTC](https://forum.kirupa.com/t/need-help-loading-text-having-trouble-with-path/163452/1 "2005-09-22T14:38:18Z")

</div>

I have an swf loading into a target on the main timeline and need to load text on the main timeline of the movie from a external text file. There is a button with an onRelease action within this newly loaded movie which is set to trigger this with the actions below. I am gettin “undefined” when I use LoadVars.

This text field is 2 levels deep inside of a movie clip on the main timeline.

This is the code I am using (please help me out):

audioBtn.onRelease = function(){  
\_root.atWindow.play();  
loadAudio = new LoadVars();  
loadAudio.load(“windows/windows001/windows001at.txt”);  
loadAudio.onLoad = function(success) {  
if (success) {  
trace(“Audio text is loaded!”);  
loadAudio.\_level0.\_root.atWindow.audio\_txtBox.audio\_text.text = this.at\_text1;

```
	}
}

```

}; :-/

Needed to reference the new LoadVars object (LoadAudio) and not “this” Last line should be:

\_level0.\_root.atWindow.audio\_txtBox.audio\_text.text = LoadAudio.at\_text1;
