# Dynamic text to a button

**URL:** https://forum.kirupa.com/t/dynamic-text-to-a-button/287594
**Category:** Uncategorized
**Created:** [May 4, 2009, 4:51am UTC](https://forum.kirupa.com/t/dynamic-text-to-a-button/287594 "2009-05-04T04:51:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pvsamy](https://avatars.discourse-cdn.com/v4/letter/p/65b543/32.png) [@pvsamy](https://forum.kirupa.com/u/pvsamy)
#### Post date: [May 4, 2009, 4:51am UTC](https://forum.kirupa.com/t/dynamic-text-to-a-button/287594/1 "2009-05-04T04:51:38Z")

</div>

hi everybody,

i have some animated buttons in a comon library. i need to generate n number of buttons using for loop and the button labels to be acquired from xml file and the same has to be assigned to the buttons as labels. ( i know it is possible in movieclips ). Can anybody tell me how to change the button’s label dynamically?

thanks in advance.

pvsamy.:bu:
