# Variables from externally loaded txt

**URL:** <https://forum.kirupa.com/t/variables-from-externally-loaded-txt/23556>\
**Category:** Uncategorized\
**Created:** [June 19, 2003, 2:43pm UTC](https://forum.kirupa.com/t/variables-from-externally-loaded-txt/23556 "2003-06-19T14:43:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kalim](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@Kalim](https://forum.kirupa.com/u/Kalim)\
**Post date:** [June 19, 2003, 2:43pm UTC](https://forum.kirupa.com/t/variables-from-externally-loaded-txt/23556/1 "2003-06-19T14:43:22Z")

</div>

Hi,  
I m loading a external text file where i have some different variables. i need to use these variable in one my movieclip. to communicate with these variales i naming the dynamic text to \_level0.n1, \_level0.n2 and so on…  
but this is not working.

If i dont load the external txt file and when i put those variable directly in the main timeline it works. Can anyone help.  
lil urgent friends. ☹

thanks in advance. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 19, 2003, 3:03pm UTC](https://forum.kirupa.com/t/variables-from-externally-loaded-txt/23556/2 "2003-06-19T15:03:51Z")

</div>

I don´t fully understand your question.

Do you have to have different variables in the same textfile?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 19, 2003, 3:26pm UTC](https://forum.kirupa.com/t/variables-from-externally-loaded-txt/23556/3 "2003-06-19T15:26:04Z")

</div>

yes friend,  
i need almost 10 variables in one text file. i have no problem with multiple variables in one text file. all the variables are available in the main timeline but its not reaching the inner movieclips.;(

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 19, 2003, 4:05pm UTC](https://forum.kirupa.com/t/variables-from-externally-loaded-txt/23556/4 "2003-06-19T16:05:06Z")

</div>

Ok I´ve never handled multuple variables in one textfield.

So the varibles don´t reach the MC or is it a loaded swf?

And your using loadVar right? Then you should just have to specify wich level och target to load the variables into.

i.e

If your swf is loaded into level 2 of your mainmovie:

[AS]loadVariablesNum(“textfile.txt”, 2);[/AS]

or into a target called container

[AS]loadVariables(“loadtxt.txt”, “container”);[/AS]

If it is an MC in your mainmovie that should get the variables call them from the MC and use the target comand \_this

?[AS]loadVariables(“textfile.txt”, “\_this”);[/AS]

Seems to be to easy but maybe that´s not what your looking for? Could you post your fla.
