Posts tagged flex3

Flex 3 hebrew textbox

0

following my last post on flex3 RTL label , next challenge was input text with RTL support , in that case I decided to cheat and use html input overlying flex.

Not so elegant solution, but a solution non the less. the trick is to pass the flex component coordinate and position the HTML input accordingly , and on the HTML side handle keyboard and mouse event to let the flex developer feel @ home with regular focus and key press events.

Add the following MXML component to your flex project

Add the following code to your html page

Flex 3 label RTL support

2

If you know or not , I’m leaving and working in Israel, where we have the most annoying text rendering issues.

we write in right to left order – that means  in the opposite direction of most languages. Letters and words are left to right, though  numbers and other symbols remain right to left.

Through the years I’ve seen (and even wrote) noumerous attempts to build an AS class that will provide this functionality to flash, all of them suffered from quirks and different edge cases.

About a year a go Adobe published a new text rendering engine (TLF) which wasn’t integrated into Flex3 framework , and though flex4 includes the new TLF some still need to work with the 3.x framework so here is a simple example of implementing true RTL label in flex 3 note that you need to download and install Text Layout Framework on your development machine in order to compile the code.

Go to Top