Dynamic text to a button

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: