Hi all,
I was reading a post in this forum that overriding the EditManager will allow me to intercept the keyboard input.
So I did that and below is code that I put to override the keyboardDownHandler:
override public function keyDownHandler(event:KeyboardEvent):void
{
if (NUMBERS_ONLY_MODE)
{
if (event.charCode < 48 || event.charCode > 57)
{
event.stopImmediatePropagation();
return;
}
}
super.keyDownHandler(event);
}
Even though it goes to event.stopImmediatePropagation when I was typing any character other than numbers, textFlow still shows what I typed in.
Any ideas of why this is not working?
Appreciate the help.
Handi
North America
Europe, Middle East and Africa
Asia Pacific