# How to access text in a button

**URL:** <https://forum.kirupa.com/t/how-to-access-text-in-a-button/298803>\
**Category:** Uncategorized\
**Created:** [October 25, 2009, 5:19pm UTC](https://forum.kirupa.com/t/how-to-access-text-in-a-button/298803 "2009-10-25T17:19:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![finky45](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@finky45](https://forum.kirupa.com/u/finky45)\
**Post date:** [October 25, 2009, 5:19pm UTC](https://forum.kirupa.com/t/how-to-access-text-in-a-button/298803/1 "2009-10-25T17:19:47Z")

</div>

I made a button in the library. Then I made some text in the button. I wrote “myText” in Instance Name Box. The buttons are added in actionscript.  
I want to access and change the text in the button in ActionScript.

myButton.myText.text = “this isn’t working”;

But it tells me “A term is undefined and has no properties.” as a runtime error. What the hell? How do I get to that textField?
