Skip to main content
May 4, 2009
Question

Extending DisplayObjectContainerController

  • May 4, 2009
  • 2 replies
  • 1020 views

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 has been closed for replies.

2 replies

Adobe Employee
May 8, 2009

I would suggest something like this:

public function processTextInputEvent(event:TextEvent):void

{

   if (interactionManager)

       interactionManager.textEventHandler(event);

}

That should do what you need.

- robin

Adobe Employee
May 6, 2009

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!

May 6, 2009

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