Hi,
I have a flash movie which contains a movie clip (named "buttons", that contains two frame labels: "open" and "closed".
I am interested in loading variables from a text file, and then telling the movie clip to go to one of its frame labels that is defined in a variable.
I am having difficulty achieving this.
My text file is named "status.txt"
It contains the following text:
option=open
I found some info on the macromedia site and created the following script in the main timeline:
loadVariablesNum ("status.txt", 0);
gotoAndPlay ("/buttons:" & option);
This method of using a variable in a goto statement is supposed to work according to the site, but it isn't for me. Does anyone know what I'm doing wrong or if there is a better way?
I'm targeting Flash 4 players.
Thanks!
-King Dufus
I have a flash movie which contains a movie clip (named "buttons", that contains two frame labels: "open" and "closed".
I am interested in loading variables from a text file, and then telling the movie clip to go to one of its frame labels that is defined in a variable.
I am having difficulty achieving this.
My text file is named "status.txt"
It contains the following text:
option=open
I found some info on the macromedia site and created the following script in the main timeline:
loadVariablesNum ("status.txt", 0);
gotoAndPlay ("/buttons:" & option);
This method of using a variable in a goto statement is supposed to work according to the site, but it isn't for me. Does anyone know what I'm doing wrong or if there is a better way?
I'm targeting Flash 4 players.
Thanks!
-King Dufus