caret (^) marks anything after the caret as disallowed and anything before it or not listed as acceptable: : Filter « TextField « Flash / Flex / ActionScript
caret (^) marks anything after the caret as disallowed and anything before it or not listed as acceptable:
package{ import flash.display.Sprite; import flash.text.*; public class Main extends Sprite{ public function Main(){
var field:TextField = new TextField( );
field.restrict = "0-9 A-F ^ a-z";
field.type = flash.text.TextFieldType.INPUT;
field.border = true;
field.background = true;
addChild(field);