caret (^) marks anything after the caret as disallowed and anything before it or not listed as acceptable : Filter : TextField Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » TextField » Filter »

 

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);

        
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo TextField
» Filter