Hello, I am new in this forums, please be easy on me
I began coding in AS3 three weeks ago, and have made some simple games.
Then, I tried making a generic SimpleButton for a multiple-choice game. I tried adding dynamicText in it, to no avail. As what I have read online, you cannot add dynamicText in it. With these, I tried to put inside a MovieClip the SimpleButton (without the text), and adding the dynamic Text in it. I tried to access the textField with
public function updateDisplay():void
{
ansHud.text = answerKey;
//ansHud is the instance name of the dynamic textField
trace(ansHud.text);
}
And it sure worked as the trace printed the value that I am passing. But the display on the program remained unchanged. What have I done wrong?
Thanks and God Bless.