# Accessing texobject in button

**URL:** <https://forum.kirupa.com/t/accessing-texobject-in-button/19162>\
**Category:** flash\
**Created:** [April 24, 2003, 9:55pm UTC](https://forum.kirupa.com/t/accessing-texobject-in-button/19162 "2003-04-24T21:55:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruben007](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@Ruben007](https://forum.kirupa.com/u/Ruben007)\
**Post date:** [April 24, 2003, 9:55pm UTC](https://forum.kirupa.com/t/accessing-texobject-in-button/19162/1 "2003-04-24T21:55:36Z")

</div>

Hello everybody,

I have a problem with accessing a textobject in a button.  
The buttons i will use are grafically the same, only the text is different.

I want to try to create a default button with empty text. so that i later can edit the content of the button.

I think it should work like this:  
but01.txtTitle.Text = “Links”;

What did i wrong!

Please help!

Greetz Ruben

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 24, 2003, 10:23pm UTC](https://forum.kirupa.com/t/accessing-texobject-in-button/19162/2 "2003-04-24T22:23:00Z")

</div>

are you defining the “Variable” name of the text box or the “instance” name? Check to make sure, that could be causing the problem.
