# External Variables

**URL:** <https://forum.kirupa.com/t/external-variables/132426>\
**Category:** Uncategorized\
**Created:** [December 28, 2004, 3:37pm UTC](https://forum.kirupa.com/t/external-variables/132426 "2004-12-28T15:37:29Z")\
**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:** [December 28, 2004, 3:37pm UTC](https://forum.kirupa.com/t/external-variables/132426/1 "2004-12-28T15:37:29Z")

</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 🙂
