# Flash 8 AS help - checkbox controlled dynamic textbox

**URL:** <https://forum.kirupa.com/t/flash-8-as-help-checkbox-controlled-dynamic-textbox/234036>\
**Category:** flash\
**Created:** [July 30, 2007, 12:17am UTC](https://forum.kirupa.com/t/flash-8-as-help-checkbox-controlled-dynamic-textbox/234036 "2007-07-30T00:17:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vicky26](https://avatars.discourse-cdn.com/v4/letter/v/58f4c7/32.png) [@Vicky26](https://forum.kirupa.com/u/Vicky26)\
**Post date:** [July 30, 2007, 12:17am UTC](https://forum.kirupa.com/t/flash-8-as-help-checkbox-controlled-dynamic-textbox/234036/1 "2007-07-30T00:17:00Z")

</div>

[FONT=Calibri][SIZE=3]Hi![/SIZE][/FONT]

[FONT=Calibri][SIZE=3]I am very new to Flash, and I am having trouble getting a dynamic text box to be controlled by a checkbox. Is this even possible? Here is the Actionscript that does not work:[/SIZE][/FONT]

[SIZE=3][FONT=Calibri]on(click){[/FONT][/SIZE]  
[SIZE=3][FONT=Calibri]if(this.selected)==true){[/FONT][/SIZE]  
[SIZE=3][FONT=Calibri]this.selected = true;[/FONT][/SIZE]  
[SIZE=3][FONT=Calibri]cyclicFeedback\_txt.text = “text here”;[/FONT][/SIZE]  
[SIZE=3][FONT=Calibri]}else{[/FONT][/SIZE]  
[SIZE=3][FONT=Calibri]this.selected = false;[/FONT][/SIZE]  
[SIZE=3][FONT=Calibri]cyclicFeedback\_txt.text = “the other text”;[/FONT][/SIZE]  
[SIZE=3][FONT=Calibri]};[/FONT][/SIZE]

[FONT=Calibri][SIZE=3]I have another problem that I might as well ask too. I would like to have users check the box, and not be able to see what is in the dynamic text box until they click a button called “submit”. [/SIZE][/FONT]

[FONT=Calibri][SIZE=3]Thank you very much for your help![/SIZE][/FONT]
