restricting which characters a TextInput can accept using flash actionscript

Posted by Vineela | Flash, as3, utils | Sunday 28 December 2008 9:33 am

import fl.controls.TextInput;

function textValid(  ) {
  var field:TextInput = new TextInput(  );
  field.restrict = 'a-z';
  addChild(field);
}

textValid();