Skip to main content
May 4, 2009 2:06 PM UTC
Question

Extending DisplayObjectContainerController

TLF is a great tool for bidirectional languages. I am trying to create text input boxes supporting RTL language. The problem is I am forced to use wmode=opaque setting in my application. As most of you know, this totaly screws the keyboard input in non-US keyboards. I am trying to fix the problem by catching the keyboard input chars and edit the input box accordingly.

I extended DisplayObjectContainerController class and overriden "processTextInputEvent" function. The problem is since TLF is closed source, I don't know how "processTextInputEvent" works so I am not sure how to code the function. What it should do is, catch the char code and insert the required arabic character.

I am open to any suggestion, any help would be most appreciated.

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Adobe Employee
May 8, 2009 8:54 PM UTC

I would suggest something like this:

public function processTextInputEvent(event:TextEvent):void

{

   if (interactionManager)

       interactionManager.textEventHandler(event);

}

That should do what you need.

- robin

Translate
Adobe Employee
May 6, 2009 3:08 AM UTC

The textInput event should be forwarded to the ISelectionManager. Things have been renamed in the API since the version you've got (another will be coming shortly) but I believe the appropiate function is called "textInputHander".

Hope this helps!

Translate
May 6, 2009 11:19 AM UTC

So should I wait for the new release, or is there a way that I can do this in my current release? I am very new to TLF and some sample code on how I can do this would be very helpful

Translate