A simple man with a simple problem...
I'd need to create a keylistener to my project so that a function (for example "Reset_all_fields()" ) is called when user clicks the spacebar.
I could not find any example how to do this, I quess it should be pretty easy task... Any hints/examples?
There is a KeyboardEvent. http://livedocs.adobe.com/flex/3/langref/flash/events/KeyboardEvent.html
InteractiveObject has several events from keyboard: keyUp, keyDown. (For example, Application also has this events http://livedocs.adobe.com/flex/3/langref/mx/core/Application.html)
In listener you can check what key was pressed.
There is an example in KeyboardEvent
Thank you from the hint.
Actually the main problem for me was how to make an actionlistener for this event.
I finally found an example from "Object Oriented Actionscript 3.0"-book: