Hello,
I have a key listener that instantiates itself in a contructor of a
class. When a key comes in, the key listener dispatches the call to a
keyListenerFunction as in the subject of this post.
The problem is that I am loosing focus to the rest of my class inside
the handler function. I want to be ablt to call a method in my class
based on which key has been pressed:
function keyListenerFunc() {
if (Key.getAscii() == 13) {
Call some public function in my class here.
//saveFromAnnotationEdit();
}
if (Key.getAscii() == 97) {
Call some public function in my class here.
//addAnnotation();
}
}
Is there a way I can pass a reference into the handler function so I
can access its methods?
Thanks for any ideas,
Keith
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/