# Dynamic Text Box - in levels

**URL:** <https://forum.kirupa.com/t/dynamic-text-box-in-levels/63990>\
**Category:** flash\
**Created:** [September 12, 2004, 6:49am UTC](https://forum.kirupa.com/t/dynamic-text-box-in-levels/63990 "2004-09-12T06:49:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![distiller](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@distiller](https://forum.kirupa.com/u/distiller)\
**Post date:** [September 12, 2004, 6:49am UTC](https://forum.kirupa.com/t/dynamic-text-box-in-levels/63990/1 "2004-09-12T06:49:24Z")

</div>

I’ve gone through the Dynamic Text posts but still can’t figure this one out:  
I load 3 movies, all in different levels and with one of the movies containing a dynamic text box which loads an external .txt file.

if I view the stand alone .swf file which contains the dynamic text box everything works fine. when I load the “base” movie which then loads the other two movies, the external text file won’t display.

how do I correctly target the .txt file in my frame action script?

(movie “base.swf”=level 0, bg.swf=level1, content.swf=3)  
my current frame actions in “content.swf”:

LoadVarsText = new LoadVars();  
LoadVarsText.load(“ww.txt”);  
// assign a function which fires when the data is loaded:  
LoadVarsText.onLoad = function(success) {  
if (success) {  
trace(“done loading”);  
// Now that we know the data is loaded,  
// set the text content of the Text Field  
// with the instance name “scroller” equal to the  
// contents of the variable  
scroller.html = true;  
scroller.htmlText = this.var1;  
} else {  
trace(“not loaded”);  
}  
};

cheers to anyone’s help!
