# Problem with dynamic text loading

**URL:** <https://forum.kirupa.com/t/problem-with-dynamic-text-loading/158222>\
**Category:** flash\
**Created:** [August 8, 2005, 11:25am UTC](https://forum.kirupa.com/t/problem-with-dynamic-text-loading/158222 "2005-08-08T11:25:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SyPhEx](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@SyPhEx](https://forum.kirupa.com/u/SyPhEx)\
**Post date:** [August 8, 2005, 11:25am UTC](https://forum.kirupa.com/t/problem-with-dynamic-text-loading/158222/1 "2005-08-08T11:25:33Z")

</div>

Greetings from israel !  
Its a simple matter of loading text from a text file named “data”  
into a dynamic field.  
the code in the frame it self is

```auto
  
loadText = new LoadVars();
loadText.load("data.txt");
loadText.onLoad = function() {
name.text = this.name;
};

```

The thing is that the SWF file i load the text into (called “RASHI.swf”)  
i loaded into another SWF file called “index.swf”  
My site is based on this tutorial  
[size=2][http://www.kirupa.com/developer/mx2004/transitions.htm](http://www.kirupa.com/developer/mx2004/transitions.htm)[/size]  
[size=2][/size]  
[size=2]when i run “RASHI.swf” on my PC everything is fine and the text is loaded[/size]  
[size=2]but when i run “index.swf” (again, on my PC, not the web) it says “Undefined”[/size]  
[size=2][**here is a picture**](http://img337.imageshack.us/img337/3415/ssprob1kc.jpg)[/size]  
the left side is a screen shot of the RASHI.swf file  
and the right side is a picture of the index.swf file (the RASHI.swf file is loded into him).

I dont seem to understand what the problem is  
but its driving me mad!

thanks for your help!  
[size=2]  
[/size]
