Yup, in the spirit of saying sorry for bugging everyone… I’m gonna bug you again!
Seeing as how some lovely person introduced me to the wonders of square brackets, I’ve been having a ball. Until this one came up.
The problem I’m having is all with taking the number from quesArray, adding that to “feedback” and then getting it to call a variable called that. i’ve tried so many combinations of using the var “feed” and other things… I need a parrot right now squawking “Wit’s end! Wit’s end!”.
Basically, there are 41 odd string vars all called feedback1-feedback41 that need to be called in when the appropriate number comes up. I can get the number, that’s no problem.
for (i=0; i<26; i++) {
if (correctArray* == true) {
isRight = "Correct";
} else if (correctArray* == false) {
isRight = "Incorrect";
}
qnum = quesArray*;
trace(qnum);
feed = ("feedback"+qnum);
trace (feed);
//Problem is with the next line, where it says [feed]...
var blurb:String = (blurb+"Q"+[i+1]+" "+isRight+"
"+[feed]+"
");
}
Thanks. Flash is evil! Yet I cannot let it beat me. So I come begging for help instead!