PDA

Click to See Complete Forum and Search --> : make flash change text input to uppercase?



niravp
07-13-2001, 12:40 PM
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.

fireofliberty
02-14-2008, 07:33 AM
INPUT_FLD1.text = String(INPUT_FLD1.text.toUpperCase())

stick it in a loop and it's done

a_modified_dog
02-18-2008, 12:09 PM
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();
};