| | | MarkoT |  |
| Posted: Fri Aug 29, 2008 12:31 pm Post subject: button enter |  |
Hi,
I have a txtMessage control of type TextArea and I would like to print something when I press button Enter. I tried this:
var myListener:Object = new Object(); myListener.onKeyDown = function () { //if (key == ENTER) trace ("You pressed a key."); } myListener.onChanged = function () { //if (key == ENTER) trace ("You pressed a key."); } txtMessage.addListener(myListener);
but it doesn't work. Please help.
Marko |
|