Update: a newer version available here
As per my previous post here, I’ve made some improvements to my method for proper Arabic rendering in a dynamic TextField using ActionScript 2.0.
An ActionSctipt 3.0 version available here
Many thanks to all reviewers, your comments were very helpful bringing this version available, now you can use and test my new parseArabic method ..
- Dynamic TextField
- HTML Enabled TextField
- Pre-Defined TextFormat
- Arabic Fonts must include a complete Arabic Presentation Forms-B (glyphs from FE70 to FEFE according to the Unicode Standard 5.2)
- Embedding Fonts (just put a dynamic textfield on-stage and select at least Basic Latin (95 glyphs) and Arabic (1088 glyphs) from the Character Embedding menu).
- Arabic Ligatures.
- Word Wrapping.
- Bi-Directional text.
- HTML Text.
- Loading External text.
Features Not Supported:
- Arabic Diacritics.
- Correct Arabic Ligatures with/without embedding fonts
- Correct Brackets Directions
- Clean Line-Breaks
Here is an example works with this external XML file:
download the above example here
When you try to select and copy the above text into a static TextField it will display Arabic properly as well, just another benefit of this method, but if you paste the copied text into any other text editor you will see an alien version instead!