A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Display Urdu/Arabic text through XML?

  1. #1
    Junior Member
    Join Date
    Aug 2008
    Posts
    1

    Display Urdu/Arabic text through XML?

    Hi,
    I am facing problem to display Urdu/Arabic text in flash using xml.
    We read and write Urdu/Arabic text from right to left.
    I have created xml which display correct Urdu/Arabic text in browser window.
    When I try to parse the xml having Urdu/Arabic text, it displays the text in reverse order i.e. from left to right.

    Please suggest me solution/tip for this or any other way to work around.

  2. #2
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    I know they fixed this in Flash 10 - but that's probably not a good solution for you right now...I don't know anything about the language but if it's as simple as reversing the string, you could use Grant Skinner's string utilities...here's the specific function:

    PHP Code:
    public static function reverse(p_string:String):String {
        if (
    p_string == null) { return ''; }
        return 
    p_string.split('').reverse().join('');


  3. #3
    Registered User
    Join Date
    Dec 2016
    Posts
    1
    hello ravindxt
    can you tell me how i can display arabic letter correctly.
    i can display them in computer, but when i publish my project to .apk and instal it in my smartphone, it appear from left to right.

    thank you ravindxt

  4. #4
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    olwan, unfortunately adobe does not care about rtl. once upon the time tlf was supposed to replace classic text fields, and bring rtl support, but now tlf is deprecated, and you have to resolve to hacks, I think.
    who is this? a word of friendly advice: FFS stop using AS2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center