# Update dynamic text inside button

**URL:** <https://forum.kirupa.com/t/update-dynamic-text-inside-button/35438>\
**Category:** Uncategorized\
**Created:** [November 14, 2003, 1:00am UTC](https://forum.kirupa.com/t/update-dynamic-text-inside-button/35438 "2003-11-14T01:00:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jess](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@jess](https://forum.kirupa.com/u/jess)\
**Post date:** [November 14, 2003, 1:00am UTC](https://forum.kirupa.com/t/update-dynamic-text-inside-button/35438/1 "2003-11-14T01:00:23Z")

</div>

How can I update the dynamic text content which is inside a button ?

In other words, how can you address a dynamic text inside a button ?

Is that possible ?

I want to change the text label of a button, on the fly.

Isn’t there any other way to achieve this than “making” a button with movie clip instead od a “real” button ? Does that mean Buttons were not expected to have dynamic text in them ?

Some many threads about the (dynamic text + button) topic that I can’t find a way to get rid of this problem ! :be:

Any solutions, from beginner to expert level would suit me :}

---

<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:** [November 14, 2003, 1:06am UTC](https://forum.kirupa.com/t/update-dynamic-text-inside-button/35438/2 "2003-11-14T01:06:24Z")

</div>

> \*Originally posted by jess \*  
> **Isn’t there any other way to achieve this than “making” a button with movie clip instead od a “real” button ?**  
> No i think theres not.

---

<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:** [November 14, 2003, 8:16am UTC](https://forum.kirupa.com/t/update-dynamic-text-inside-button/35438/3 "2003-11-14T08:16:02Z")

</div>

That’s what I call a crystal clear answer LOL

Thanxx Claudio 😉

---

<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:** [November 14, 2003, 9:43am UTC](https://forum.kirupa.com/t/update-dynamic-text-inside-button/35438/4 "2003-11-14T09:43:48Z")

</div>

Senocular answered why in this thread: [http://www.kirupaforum.com/forums/showthread.php?s=&threadid=19984#post161268](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=19984#post161268). 😉

---

<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:** [November 14, 2003, 10:13am UTC](https://forum.kirupa.com/t/update-dynamic-text-inside-button/35438/5 "2003-11-14T10:13:07Z")

</div>

woo ! nice thread 🙂  
thank you for the link, it explains it well.  
By the way, I’d prefer the ‘option 1’ - namely making a clip with button behaviors - instead of ‘option 2’ which consists in saving references of clip instances (that are inside the button) into accessible “global” variables. I don’t like this much cause it’s not a nice way, from object- oriented programming point of view, IMHO.

Option 1 is more … clear and handy ? don’t you think so ?

:nerd:

---

<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:** [November 14, 2003, 10:16am UTC](https://forum.kirupa.com/t/update-dynamic-text-inside-button/35438/6 "2003-11-14T10:16:15Z")

</div>

Yep, I think that the first option is better too. 🙂
