Displaying Character Codes in Flex
If you are capturing keyboard events and want to display the Character Code as Text all you need to do is use String.fromCharCode( …charCodes ) as in the following:
private
function keyDownHandler(event:KeyboardEvent):void{
textInput.text = String.fromCharCode( event.keyCode );
}
Don’t you just love searching and searching for something that should be real simple and then feel like this:

Hi,
Thanks for the hint, although I used charCode instead of keyCode since it seems to fit the syntax.
Posted by: markz | August 15, 2008 at 01:41 PM