3 Replies Latest reply on Aug 9, 2006 9:28 AM by TucsonJava

    restrict property bug

    TucsonJava Level 1
      I believe this is a bug with the restrict property on TexxtInput. If you want to restrict entry to numbers, period, single quote and double quote you can specify it like this in actionscript...

      this.restrict = "0-9.'\""; // uses escape character to allow inclusion of a quote.

      However, if you try that in mxml, like this ...

      <mx:TextInput x="10" y="70" id="ti_cutLength" width="70"
      text="{currentCutLength}" restrict = "0-9.'\"" />

      You will get a compiler error indicating it does not recognize the escape character.

      Does anyone know a workaround?