Checkbox controlled dynamic text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vicky26
    New Member
    • Jul 2007
    • 2

    Checkbox controlled dynamic text

    Hi! I am new to Flash and I am having trouble getting a dyamic text box to be controlled by a checkbox.

    Here is the Actionscript that does not work:

    on(click){
    if(this.selecte d)==true){
    this.selected = true;
    dynamictextboxn ame_txt.text = "text here";
    }else{
    this.selected = false;
    dynamictextboxn ame_txt.text = "the other text";
    };

    I have another problem that I might as well post while I am here. I would like to have users check the box, and not be able to see what is in the dyanamic text box until they click a button called "submit". Any ideas for the script for this?

    Thank you very much for your help,

    Vicky
  • Vicky26
    New Member
    • Jul 2007
    • 2

    #2
    I am using Flash 8 if that makes a difference. Thanks!

    Comment

    • axis
      New Member
      • Apr 2007
      • 12

      #3
      Make
      dynamictextboxn ame_txt._visibl e = false;
      . When the button is pushed, change it to
      dynamictextboxn ame_txt._visibl e = true;

      Comment

      Working...