6 Replies Latest reply: Apr 10, 2012 5:34 PM by mspanish RSS

    dispatchEvent to send keyboard events (AS3)?

    Hugga_Tree

      Hello,

       

      I am trying to create an on-screen keyboard for a touch-screen kiosk. Does anyone know how to send a keyboard event to a text input component from a button click event? For example, the user will push the on-screen buttons to enter their name, press tab to go to the next field, and so on.

       

      I believe that I somehow need to use dispatchEvent but have not been able to get it to work. For example, pressing the on-screen A keyboard button will fire a CLICK event and call a handler to place an A in the currently focused text input component. The handler needs to be able to dispatch a keyboard event (with the correct keycode) to that text input field and that is where I am stuck.

       

      Is this possible or am I on the wrong track?

       

      Thank you in advance for any help or ideas.