Use this properly
I'm trying to change visibility of objects on screen using this.
| this["answers" + currentQuestionNum + "." + "answer" + currentQuestionNum + "_d"].visible = 0 |
so if currentQuestionNum = 1, it does answers1.answer1_d.visible = 0
but I got the following error:
TypeError: Error #1010: A term is undefined and has no properties.
at _211_fla::interaction_1/setupQuestionFrame()
at _211_fla::interaction_1/frame3()
at flash.display::MovieClip/gotoAndStop()
at _211_fla::interaction_1/gotoNextQuestion()
at MethodInfo-163()
If I do:
| trace("answers" + currentQuestionNum + "." + "answer" + currentQuestionNum + "_d"); |
It shows the string answers1.answer1_d correctly.
How can I make it work?
Thanks,
