Using Flash in CS3, actionscript v 2.0
What I want to do:
User can open a text file, and answer 5 yes or no questions, then save the file.
Those yes/no answers are loaded as dynamic text onto the stage inside a movieclip
Depending on the answers, the navigation buttons will only go to the sections, (in this case, keyframes on the main timeline) that have a “yes” answer. Esentially, this would allow multiple navigation options, that are input dynamically from the text file.
Here is the actionscript that I have on one of the buttons. I realize that each button will have to be scripted indivudually, but I can’t even get this one to work. It reads the “if” and the “else”, but ignores the “else if” parts.
Any ideas??? Been going at this one all day.
Note that my dynamic text fields are named 1, 2, 3, and are inside the movie clipe “test_text” which is on the main timeline.
on (release) {
if (_root.test_text.1 == "yes") {
gotoAndStop(25);
} else if (_root.test_text.2 == "yes") {
gotoAndStop(20);
} else if (_root.test_text.3 == "yes") {
gotoAndStop(15);
} else {
stop;
}
}