7 Replies Latest reply on Mar 29, 2007 12:54 PM by funonmars

    AS 3 Convert button event to key enter event

    funonmars Level 1
      I'm learning how to use regular expressions in ActionScript 3, and can get an input to be tested by regular expressions, and an answer delivered, if a button is clicked after text is entered.

      But darn if I can figure how to code it so they just click the enter key after typing what they like. In the following code punk is a button, and there are two text fields, buzzo the input, and tester the answer to the input. The array questo contains the regular expressions, the array anso contains the responses.

      I need code to replace the bottom line with a line that relates to key enter being typed. Thanks for any ideas.