A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: make flash change text input to uppercase?

  1. #1
    Junior Member
    Join Date
    Apr 2001
    Posts
    14
    Hello,

    I have a password area in my flash file. Right now you must type in a specific word to grant access. The actionscript I'm using can be configured to accept either uppercase or lower case. Not both!!!!! Does anyone have any suggestions or maybe another script that will change all text in the "inputtext" box to uppercase before the user hits the button.

  2. #2
    Junior Member
    Join Date
    Feb 2008
    Posts
    1
    INPUT_FLD1.text = String(INPUT_FLD1.text.toUpperCase())

    stick it in a loop and it's done

  3. #3
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    rather than a loop, use the onChanged handler -

    this.createTextField("inp",100,100,100,100,35);
    inp.type = "input";
    inp.border = true;

    inp.onChanged = function(){
    inp.text = inp.text.toUpperCase();
    };

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center