# Passing new textField

**URL:** <https://forum.kirupa.com/t/passing-new-textfield/321926>\
**Category:** Uncategorized\
**Created:** [May 5, 2011, 2:48am UTC](https://forum.kirupa.com/t/passing-new-textfield/321926 "2011-05-05T02:48:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rekenber](https://avatars.discourse-cdn.com/v4/letter/r/bc8723/32.png) [@rekenber](https://forum.kirupa.com/u/rekenber)\
**Post date:** [May 5, 2011, 2:48am UTC](https://forum.kirupa.com/t/passing-new-textfield/321926/1 "2011-05-05T02:48:35Z")

</div>

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

```auto
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. 😃
