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 (event.charCode < 48 || event.charCode > 57)
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.
Look at how Spark TextInput handles the restrict property.
Ahhh..so do the interception on FlowOperationEvent.FLOW_OPERATION_BEGIN event.
Out of curiousity, I am guessing the reason why my first approach didn't work was because FlowOperation will be executed first before EditManager operation executes, correct?
I don’t know TLF to that level of detail.