Example below demonstrates the working of KeyboardEvent listeners. In the example when certain specific keys are pressed the function eventListener invokes the functions neo and trinity. These specific keys are shift and ctrl which when pressed together opens a web page url. Also listener for keys are created using conditional statements and with these listeners when ever the boolean condition becomes true, an alert box is generated.
keyListeners.mxml
<?xml version = '1.0'?>
|
keyListeners.swf


when the ctrl + shift is pressed following url
(http://www.roseindia.net/flex)
web page opens in you default browser
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Flex KeyboardEvent Listener
Post your Comment