Advertisement

07.07.2008 at 01:29AM PDT, ID: 23542687 | Points: 500
[x]
Attachment Details

How to stop key_down event in flex?

Asked by exprotein in Adobe Flex

Tags: , ,

I'm trying to do this: handle key_down event, and stop the propagation, but no joy.
I handle the key_down event globally through the stage:

this.stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDown, true, int.MAX_VALUE);

and in keyDown function:

###########
do my work
###########
if (needToStop)
    event.stopImmediatePropagation();

Actually, I'm developing a foreign language (vietnamese) input method for my flex application, because flash textfield had had famous bug about unicode/foreign character input, although it can display unicode character beautifully.Start Free Trial
[+][-]07.07.2008 at 11:02PM PDT, ID: 21951226

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 11:37PM PDT, ID: 22086394

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.22.2008 at 01:24AM PDT, ID: 22287788

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628