TextField restrict property and RegExp?


It seems it isn’t possible to use RegExp with restrict property, any workaround? I received this specification for dates in an input field:


Besides the AS editor behaves weird when escaping chars like adding one char after the last quote, usually an space and sometimes others chars like the 6 in this example. Anyway the code seems to work fine

via.restrict = “0-9A-Za-zñÑáéíóúÁÉÍÓÚçÇäëïöüÄËÏÖÜàèìòùÀÈÌÒÙ· /.,\-ºª”’"6;

CS3, OS X 10.4.11


Is it possible to intercept chars typed before they are displayed?