I know I've figured this out before, but I can't remember what I did. Basically I am trying to use a variable to get the correct info from an xml file.

So I have a variable that is set to be 1.
var whichQuestion=1;

And then I am trying to use the correct info in a text field. So this works properly:
mcQuestion.text=xmlData.question1.question;

However, I want the #1 in that line to be a variable that can be changed. So I've been trying things like this:
mcQuestion.text=xmlData.question+whichQuestion+.qu estion;

However all the variations I've tried (including converting to string, etc) have not been working.

Hopefully that made sense, and if anyone can point me in the right direction it would be very much appreciated.

Thanks!