# As help (loading a txt file into a loaded .swf)

**URL:** <https://forum.kirupa.com/t/as-help-loading-a-txt-file-into-a-loaded-swf/123263>\
**Category:** Uncategorized\
**Created:** [September 22, 2004, 3:03am UTC](https://forum.kirupa.com/t/as-help-loading-a-txt-file-into-a-loaded-swf/123263 "2004-09-22T03:03:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayerno12](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mayerno12/32/768_2.png) [@mayerno12](https://forum.kirupa.com/u/mayerno12)\
**Post date:** [September 22, 2004, 3:03am UTC](https://forum.kirupa.com/t/as-help-loading-a-txt-file-into-a-loaded-swf/123263/1 "2004-09-22T03:03:33Z")

</div>

Hello,

I am having problems loading an external text file into my loaded SWF with a dynamic text box.

I have my main timeline with my buttons on it and I would like to, on release load an external swf with a dynamic text box. Then load my text file into that text box. I gave my text box and instance name of _loadText_ and the text file I want to load is _data.txt_.

How do I target the swf I just loaded? I’ve tried all sorts of \_roots and \_parents ect…

I’m using

```auto
loadVariables("data.txt","loadText");

```

which doesnt seem to work. Also tried to add a \_root.loadText, \_parent.loadText and nothing seems to work. I got it to work from the loaded swf with a simple loadVariables(“data.txt”,this);

Any help would be greatly appreciated…

Thanks…
