I am trying to control a movie clip with variables from a text file.
The text file is called "text.txt" and contains:
text=hello
&text1=Hey
&text2=Howdy
The first frame of the main timeline contains the actionscript:
loadVariablesNum ("text.txt", 0);
The Movie Clip has the following actionscript
onClipEvent (load) {
if (_root.text == "hello" {
gotoAndPlay (11);
}
}
The Text file is being read correctly because the values are showing up in the text boxes.
The if statement is not being processed, because the movieClip does not go to frame 11.
What have I done wrong ?
The text file is called "text.txt" and contains:
text=hello
&text1=Hey
&text2=Howdy
The first frame of the main timeline contains the actionscript:
loadVariablesNum ("text.txt", 0);
The Movie Clip has the following actionscript
onClipEvent (load) {
if (_root.text == "hello" {
gotoAndPlay (11);
}
}
The Text file is being read correctly because the values are showing up in the text boxes.
The if statement is not being processed, because the movieClip does not go to frame 11.
What have I done wrong ?