mea
06-01-2005, 09:23 PM
Hi! I'm creating a dynamic quiz in Flash. That is, Flash is reading the questions from an XML file, and displaying them as dynamic text on the stage.
I have multiple choice and true/false questions sharing the same form on the stage. (I figured a true/false question was the same as m/c, with only 2 options.) To hide the extra buttons, I have the following ActionScript code on the frame:
if (choice2text == undefined) {
Choice2.visible = false;
} else {
Choice2.visible = true;
}
However, the Choice2 radio button still displays (with no text). When I move to the next T/F question, the buttons display properly (no Choice2). And if I move backwards to this first T/F question, the buttons now display properly (no Choice2). What gives? Why don't the buttons display properly all the time? Thanks!
** Mea :confused:
I have multiple choice and true/false questions sharing the same form on the stage. (I figured a true/false question was the same as m/c, with only 2 options.) To hide the extra buttons, I have the following ActionScript code on the frame:
if (choice2text == undefined) {
Choice2.visible = false;
} else {
Choice2.visible = true;
}
However, the Choice2 radio button still displays (with no text). When I move to the next T/F question, the buttons display properly (no Choice2). And if I move backwards to this first T/F question, the buttons now display properly (no Choice2). What gives? Why don't the buttons display properly all the time? Thanks!
** Mea :confused: