I'm trying to make a quiz for my students. I'm going to use it through a projector and the students will raise their choice cards to answer the questions. So there's a button in each frame of question to show the correct answer after the students. So I need these buttons to get the correct answer from the answer key in the dynamic text fields for each answer in the last frame of the clip. I've tried to define instance names and call the instance name (q1, q2, q3, etc.) using button actions like this:
if (q1.text == "A"){
AnswerA.play();
}
if (q1.text == "B"){
AnswerB.play();
}
if (q1.text == "C"){
AnswerC.play();
}
if (q1.text == "D"){
AnswerD.play();
}
The correct answer is never shown. I also tried using variable names of the text fields in the same way but it didn't work, either. I couldn't manage to get values from the unvisited frame to the timeline span actions layer's first frame. What should I do to retrieve the data of the dynamic text fields to use them in ActionScript 2? Thanks in advance for any useful idea.