Concatenate variable name

Hi all!
Here goes my first post on this forum. I’m trying to concatenate a name and variable number. Then trace it, so answer3 should output from my loaded xml data “water”. Instead all I can get to trace is the word “answer3”. If I type “answer3” in the trace I get the variable im looking for. If I type [this.getCorrectAnswerNumber()] in the trace I get number 3. How do I go about concatinating the word answer and a dynamic number.

Heres my code…


trace("answer"+[this.getCorrectAnswerNumber()]);

Thanks for your help,
J