title: How to restrict the text field in actionscript 2
body: <p>this is my code ..</p>
  
  <pre><code>import RegExp;
  var userEmail:String;
  var userName:String;
  var userPhone:String;
  </code></pre>
  
  <p>how to restrict my userPhone:String; to take only numbers?</p>
  
  <p>i tried the restrict property. the compiler gives me error.</p>