Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Flash - ActionScript

button enter

 
Jump to:  
 
MarkoT
PostPosted: 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
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

poker online części do maszyn volvo hotele londyn europalety hale namiotowe