Posted By

feeorin on 11/25/10


Tagged

input text TextField uppercase force


Versions (?)

Force text input to uppercase


 / Published in: ActionScript 3
 

  1. /* Use this function to be dispatch from an Event.CHANGE on a textfield */
  2.  
  3. private function _handleChangeText ($evt:Event):void {
  4.  
  5. var $curInput:String = evt.target.text;
  6. evt.target.text = $curInput.toLocaleUpperCase();
  7.  
  8. }

Report this snippet  

You need to login to post a comment.