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