# Problem with external variables

**URL:** <https://forum.kirupa.com/t/problem-with-external-variables/134852>\
**Category:** Uncategorized\
**Created:** [January 22, 2005, 2:37am UTC](https://forum.kirupa.com/t/problem-with-external-variables/134852 "2005-01-22T02:37:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmartino](https://avatars.discourse-cdn.com/v4/letter/n/d07c76/32.png) [@nmartino](https://forum.kirupa.com/u/nmartino)\
**Post date:** [January 22, 2005, 2:37am UTC](https://forum.kirupa.com/t/problem-with-external-variables/134852/1 "2005-01-22T02:37:42Z")

</div>

Hello,

I need some help to solve a problem with external variables.  
I have a flash movie - index.swf.

\_On the first frame of this movie I have a frame where I define my varibles:

**presentation=“yes”;**  
**clip1=“no”;**  
**clip2=“yes”;**  
**conclusion=“yes”;**

\_On the second frame I have this actionscript:

**if (presentation == “sim”) {**  
**loadMovieNum(“presentation.swf”, 1);**  
**}**  
**else {**  
**gotoAndPlay(3);**  
**}**

\_On frame 3 I have:

**if (clip1 == “yes”) {**  
**loadMovieNum(“clip1.swf”, 1);**  
\*\*} \*\*  
**else {**  
**gotoAndPlay(4);**  
**}**

\_On frame 4 I have:

**if (clip2 == “yes”) {**  
**loadMovieNum(“clip2.swf”, 1);**  
\*\*} \*\*  
**else {**  
**gotoAndPlay(5);**  
**}**

\_On frame 5:

**if (conclusion == “yes”) {**  
**loadMovieNum(“conclusion.swf”, 1);**  
\*\*} \*\*  
**else {**  
**gotoAndPlay(2);**  
**}**

And this script is working. When I make a movie preview my movie loads the presentation.swf, clip2.swf and concluison.swf.

When I define my variables from a external TXT file the movie doesn´t work.

I creat a TXT called navigation.txt with the definition of my variables:

**&presentation=yes&clip1=no&clip2=yes&conclusion=yes&** and

On the first frame of flash I define the name of the external TXT file with the variables:

**loadVariablesNum(“navigation.txt”, 0);**

And the flash doesn´t work. Why?  
Can you help me?

Thank you.  
And I ask you sorry because my poor English 🙂
