0

I'm developing an AIR mobile application (iOS and Android) for the middle-east market. I'm trying to "create" input textfield that support the arabic font and the RTL direction:

  • (classic) TextField doesn't support the RTL direction
  • TLFTextField supports RTL direction but doesn't work properly on mobile devices (at least, on iOS devices: softkeyboard isn't shown)
  • StageText is perfect for mobile devices but it seems doesn't support RTL direction (I don't know about the arabic font)

Did someone has never been in this situation? Which could be a solution? I'm a bit demoralized...

Thank you all in advance.

  • Try this http://stackoverflow.com/questions/19212039/the-tlf-text-layout-framework-is-deprecated-what-to-do-now – kare Jul 16 '14 at 21:05

3 Answers3

0

I don't really know too much about Arabic language so I hope my assumption that RTL is the only distinction is correct. In that case you can easily 'trick' the textfield like this:

var t:TextField = new TextField();
addChild(t);
//...set text format if you need/want to
t.addEventListener(Event.CHANGE, onTextChange);

function onTextChange(e:Event):void {
    t.setSelection(0, 0);
}

I assume you will want to align the textfield to the right.

Fygo
  • 4,555
  • 6
  • 33
  • 47
0

This is Adobe Air bug, see this links:

Adobe Forums

Bug

They said if a lot of user vote for this they will solve it!

Anas
  • 711
  • 7
  • 24