Page 1 of 1

Navigatimg within Flex TextBox

Posted: Sat Jan 06, 2007 7:23 am
by seesharp
Hi

(using f_in_box__control)

if I have a movie (Flex, AS3, FlashPlayer9) with some text boxes, I cannot navigate within the text using the arrow keys.
This works with FlashPlayerControl as expected.

Alex

Posted: Sat Jan 06, 2007 8:26 pm
by Softanics
Thank you for your question.

FlashPlayerControl implemented IsInputKey method (the implementation always returns true), f_in_box__control doesn't implement this method. That's why TAB doesn't work properly.

For some movies, TAB should be handle by a f_in_box__control, for others, f_in_box__control must not handle TAB. The same for ENTER, LEFT ARROW, RIGHT ARROW etc.

We are ready to include some property / method / event that specify what keys should be processed by a f_in_box__control. What do you think about the following implementation: we will include the event IsInputKey, and if your movie should handle TAB itself, you just handle this event and return true if passed key is TAB. I think, that will be enough to resolve this problem...

With current f_in_box__control version, you can create derived class from f_in_box__control and override IsInputKey method. But I think that additional event would be better solution.

Posted: Sat Jan 06, 2007 8:38 pm
by seesharp
Thanks for the reply

in other words, this event would allow me to decide myself which key inputs shall be passed to Flash and which should be handled by f_in_box__control itself ?

I think that might be a perfect solution. I didn't test yet but will it be the same for f_in_box__form then ?


Thanks and good night

Alex

Posted: Sat Jan 06, 2007 8:42 pm
by Softanics
seesharp wrote:in other words, this event would allow me to decide myself which key inputs shall be passed to Flash and which should be handled by f_in_box__control itself ?


Yes.

seesharp wrote:I think that might be a perfect solution.


OK. I will add it in the nearest time and will post here about that.

seesharp wrote:I didn't test yet but will it be the same for f_in_box__form then ?


f_in_box__form is a separate window, not a child window, so TAB and others keys should work properly with f_in_box__form.

Posted: Sun Jan 07, 2007 12:21 pm
by Softanics
Small mistake: I meant arrow keys, not TAB, above.

I just have uploaded updated version, how to use new event you can see in the example Sample7_ExternalInterface.

Posted: Sun Jan 07, 2007 1:07 pm
by seesharp
Hey,


It's sunday !!!
Thanks and although I am very impressed by your product and support, don't forget to enjoy your live, don't work too hard :wink:

Alex

Posted: Sun Jan 07, 2007 1:40 pm
by Softanics
Thank you, Alex :) :)

Posted: Sun Jan 07, 2007 1:48 pm
by seesharp
BTW,

although its sunday, I've already tested and, as usual, it works.

Have a nice afternoon.
Kind regards form Switzerland


Alex

Important...

Posted: Fri Aug 07, 2009 8:16 pm
by tos
Please try to point out this method of trasfering keys to flash.
I've been seraching for a solution over 2 weeks. And OnIsInputKey is under my nose, even in manual.
I think that users are not well-familiar with this accidental feature.

I'm just trying to help.