I am putting together a small entertainment industry trivia Q&A. Each time a correct answer is selected a point is answered to the scoreboard. The code that I have used for this is:
var score:Number = 0;
stooges_mc._visible = false;
submit_btn.onRelease = function() {
if (lmc_rb.selected) {
answer_txt.text = “CORRECT!!!”;
stooges_mc._visible = true;
score += 1;
} else {
answer_txt.text = “WRONG!!!”;
}
};
continue_btn.onRelease = function() {
nextFrame();
};
And this much all works fine. My question is this: if the correct answer was selected once, submitted and a point received what might I be able to add so that if it is selected a second time and submitted another point would not be added? (I mean that if you’ve already been awarded a point for a correct response you should not be able to keep adding points via selecting the same answer to the same question.)