TextInput does not use KeyboardEvent / TextEvent to enter text, it uses internal Flash TextField objects that interact with Flash Player / Keyboard.
KeyboardEvent is used to enable keyboard event notification.
To simulate a keyboard, you need to create a class that, after receiving the KeyboardEvent, will change the TextInput text property and cursor position, respectively.
Alex Harui wrote a similar post about this FlexCoders Post
source
share