# Help- Dynamic text button player 7

**URL:** <https://forum.kirupa.com/t/help-dynamic-text-button-player-7/151986>\
**Category:** flash\
**Created:** [June 20, 2005, 10:39am UTC](https://forum.kirupa.com/t/help-dynamic-text-button-player-7/151986 "2005-06-20T10:39:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crugh](https://avatars.discourse-cdn.com/v4/letter/c/ccd318/32.png) [@crugh](https://forum.kirupa.com/u/crugh)\
**Post date:** [June 20, 2005, 10:39am UTC](https://forum.kirupa.com/t/help-dynamic-text-button-player-7/151986/1 "2005-06-20T10:39:31Z")

</div>

[color=black][font=Arial]Hello,[/font][/color]

[color=black][font=Arial]I am trying to upgrade a quiz that I created to flash player 7. The function works in flash player 6 with no problem but when I export it in flash player 7 everything works but the dynamic text does not show. [/font][/color]

[color=black][font=Arial]I have been playing around with this for hours and cannot seem to get the text to show. [/font][/color]

[color=black][font=Arial]Here is the function:[/font][/color]

[color=black][font=Arial]buttonLbl = [“1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”];[/font][/color]  
[color=black][font=Arial].[/font][/color]  
[color=black][font=Arial].[/font][/color]  
[color=black][font=Arial].[/font][/color]  
[size=3][font=Times New Roman]function choiceButtons(numCh) {[/font][/size]

[size=3][font=Times New Roman]for (x=0; x\<numCh; x++) {[/font][/size]

[size=3][font=Times New Roman]\_root.attachMovie(“choiceButton”, “choiceButton”+x, 200+x);[/font][/size]

[size=3][font=Times New Roman]\_root[“choiceButton”+x].\_x = 20;[/font][/size]

[size=3][font=Times New Roman]\_root[“choiceButton”+x].\_y = 180+(40\*x);[/font][/size]

[size=3][font=Times New Roman]\_root[“choiceButton”+x].createTextField(“mytext”, 1, -10, -13, 0, 0);[/font][/size]

[size=3][font=Times New Roman]\_root[“choiceButton”+x][“mytext”].autosize = “left”;[/font][/size]

[size=3][font=Times New Roman]\_root[“choiceButton”+x][“mytext”].text = buttonLbl[x];[/font][/size]

[size=3][font=Times New Roman]\_root[“choiceButton”+x][“mytext”].selectable = false;[/font][/size]

[size=3][font=Times New Roman]// textstyle:[/font][/size]

[size=3][font=Times New Roman]\_root[“choiceButton”+x][“mytext”].setTextFormat(new TextFormat(“Verdana”, 18, 0x0000000, true));[/font][/size]

[size=3][font=Times New Roman]\_root[“choiceButton”+x].action = (1+x);[/font][/size]

[size=3][font=Times New Roman]}[/font][/size]

[font=Times New Roman][size=3]}[/size][/font]

[color=black][font=Arial]Thank you for your help.[/font][/color]  
[color=black][font=Arial]crugh[/font][/color]

[size=3][/size]
