View Full Version : RTL Direction in Flex
borna
07-31-2007, 07:31 AM
dear friends
hi
this is borna, your new friend and it's my first Thread...
I need bi-directional text in flex. My text direction is Right-to-Left and also, I know it's not supported in flash player (Flex platform).
how can I make that?
thanks every body.
drkstr
07-31-2007, 06:54 PM
I thought unicode text was supported. Is Can you display your text in unicode characters? If the problem is that it displays the character, but not the correct direction, you may have to write an engine to rotate the charecters.
If you use
use namespace mx_internal;
in your actionscript file, you can gain access to the flash TextField object by means of
var someTextArea:TextArea = new TextArea();
trace( someTextArea.getTextField() );
You can also create your own TextField base class by implementing the UITextField class. This is an extension of the TextField class that can be added as a flex components child.
Hope this was of some help,
...aaron
dr_zeus
07-31-2007, 09:15 PM
There is no official way to support RTL text at this time. Representatives from Adobe have stated publicly that Flash Player 10 will include much better support for bi-directional text.
Post by Emmy Huang, Flash Player Product Manager:
(tiny) clarification on bi-directional text support in the next Flash Player (http://weblogs.macromedia.com/emmy/archives/2007/05/tiny_clarificat.cfm)
borna
08-01-2007, 11:46 AM
Dear Josh,
thanks for your help. that was great. now, I have another question. I downloaded Adobe Flex Builder 3.0 - M2 Beta 1 from Adobe site and it use flash player 9 as you know. so, there is no way to use bi-di texts in this version, too...
Do them solve this problem and make me and all of people like me happy about last version of flex (3.0) with last version of flash player (10) with bi-di text support at last?!?!
you see, I whant develop this technologies (RIA - FLEX - ADOBE AIR) in my country and without bi-di text support I can't do this at all.
thanks, again...
dr_zeus
08-01-2007, 05:52 PM
borna, I know of no changes to bi-di text support in Flex 3. They added some useful features for changing localization at runtime (loading new text), but I haven't seen anything related to text direction.
drkstr
08-01-2007, 09:35 PM
Why can't you manually transpose the characters? The flash TextField (or UITextField in flex) allows for full control over text rendering. It will take some coding, but it's better then nothing. I admit I've never worked w/ BiDi text before, so maybe there is something I'm missing. But if i needed my text to print in reverse direction, I would just write an algorithm to do it.
Regards,
...aaron
dr_zeus
08-03-2007, 06:51 PM
There are some other issues besides the order of the characters, drkstr. Some languages have special little connectors that appear between two letters, and because you'll be placing those letters into an LTR environment rather than RTL environment, the connectors will change, and that can alter the meaning of a particular word dramatically!
drkstr
08-03-2007, 10:46 PM
Thanks for the clarification. I always like learning new things. From the sounds of it, writing a BiDi engine would be more trouble then it's worth. It still has my curiosity though...
Take care!
...aaron
borna
08-04-2007, 09:25 AM
my dear friends,
dr_zeus and drkstr...
thanks for your attention. it was so nice for me.
BornAeon@yahoo.com
this is my email address. if there is any news about bidi texts or you have any new solution for it, please mail it to me.....
thanks again and again and again...
shabrawy
11-02-2009, 07:21 AM
Hi,
It is the first time to post here.
i was searching about RTL support in Flex, but i didnot any support for RTL controls. so, we did our own controls which totaly support RTL languages.
Thanks,
Mohamed Hassan
dekelev
11-02-2009, 08:45 AM
In flash player 10 there is a new RTL text support and you can use flex for it.
all you need to do is use TextBlock class and set its bidiLevel to 1.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.