How to write arabic in Flash 8?

The most common problem that we face here in the Middle East is writing Arabic with Flash. There was a version that I was using it to write Arabic in Flash and it was very easy to use, it was a special version of Flash 6.

And now, many Flash designers face a problem with this issue in their projects, especially when copying and pasting paragraphs.

In this tutorial, you’ll learn how to fix that problem, let us start:

Step 1:
Choose the Text tool, or click (T), for shortcut, and transform it to a dynamic text.



Step 2:
Now if you copy and paste the arabic text directly in the dynamic text field, you’ll find something that looks like this:

And once you publish your file, the paragraph will be reveresed.

mmm.. That doesn’t look right to me
So, let’s do it again.
Copy the arabic text and paste it in Notepad where the Encoding is set to Unicode, and save type as: All files

Step 3:
Then, copy again the text from Notepad and paste it in the dynamic text

As you can see the text is in a big mess!
But once you publish the file, the text will be written right.

Enjoy !
Rony Mattar

Popularity: 20% [?]

22 Responses to “How to write arabic in Flash 8?”


  1. 1 Jo

    Nice work man :)

  2. 2 Chady

    The problem is in the way that flash embeds and renders arabic fonts.
    If you don’t embed the font, it will render correctly, cause flash will ask the operating system to render the font for it. But then you can’t animate or mask that textfield cause that needs an embeded font.
    If you embed the font, flash will embed one symbol for each letter, and then it will just place the letters next to each other.

    I have developed a system to convert arabic text into a series of symbols that flash will know how to draw correctly - check http://www.nhdrlebanon.org/

    Of course, due to this being property of the company where I work I cannot share the code to do it, but I will be sharing the concept soon enough on my website.

  3. 3 Loay

    Hello,
    Thanks for the illustration.
    but the problem is that the dynamic text has a white background (unlike the static text-transparent BG).
    i wonder if there is a way to make the dynamic text background to be transparent! or make the previous steps on a static text.

    thanks alot ;)

  4. 4 Rony Mattar

    Yes Loay, if you check the image in the link below.
    click here
    There’s a button in flash where you can show border around text, if it is clicked, then it will show a border and a white background, click it again and the white background will disappear.
    I hope I was helpful :)

  5. 5 Omer

    Thank you Rony for sharing this.
    I am using Flash 8 Professional and I was able to load Arabic text from an xml file (saved as UTF-8) and display it in dynamic text as you can see here:
    http://alfikra.org/radio_a.php
    However one of the site visiters complained that the player displayes the charachetrs as you’ve shown above (reversed and unlinked) and I am not sure why because I test it from other PCs where Arabic is not installed and did not see an issue there. Both my site visitor’s computer and mine use Flash 9 player in Windows XP. I tried to embed the font (Traditional Arabic) but that messed things up even for my PC so I reverted back into using Arial Unicode font without embeding.
    The only other problem I faced was when I tried to mask or apply any effects on the text. That did not work.
    Omer

  6. 6 hanan

    thank you very much for this tutorial,
    I was looking for a while for a solution to write arabic text on flash8,
    the main problem now for me is that flash does not “understand” words in arabic
    I mean it can just write the first letter of the word in the end of a line and continue to the next line.
    But it’s better than cpying arabic text as image ! (that’s what i’m doing now)
    Thanks again, good work,
    Hanen.

  7. 7 Ameirah

    This is an amazing site by the way.

    I still have problems even with your tutorial. Yes the sentences are correct, but the first word of each paragraph is missing, some words are broken with line breaks and if I highlight the text with my cursor and move the text scrolls horzontally. (Very weird)

    Thanks for the tutorial!

    Ameirah

  8. 8 Ameirah

    Also, I have scroll space which the dynamic text doesnt appear. Does the text there have to be input? If so, what can I do for the arabic in that case?

  9. 9 Rony Mattar

    Hello Ameirah!
    The dynamic text must be not selectable, so it doesn’t scroll when highlighting it.

    Concerning the first letter of each word, this tutorial is just a way to write small text. If it doesn’t work well, you can load the arabic text from a .txt file also, it works fine, I can send you a tutorial about that if you want.

    Rony

  10. 10 Ameirah

    Merci kteer Rony, Yes please send me the tutorial. I am new at flash and this arabic issue is making it even harder!

  11. 11 Kumar

    hey guys, this was really a helpfull forum, i got the problem solved, but still i would like to know, how do i call arabic tect from a external unicode 8 text file to keep the content dynamic. so that the client can update the content by himself @ a period of time.

    thanks in advance for any support.
    mail me @ gonchu24@yahoo.co.in

    kumar

  12. 12 Laura

    Hello!This forum is great! I have the same problem as Kumar (whell almost.. I’m designing a page for a client who needs too go in and update info now and then, but doesn’t know anything about flash. I alsoo use the unicode8-system because the page is in spannish, and flash8 doesn’t support the specail caracters)Therefor it will be great to hear if anyone have an anser to Kumars questieon (and mine….)
    In advance: Thanks a lot for the support!

  13. 13 Wahoo

    Thank you for sharing!

  14. 14 ahmad

    For embeded Arabic | Persian | Urdu text in Flash you can use Flaraby3:

    http://www.arabicode.com/flaraby/

    Thank you.

  15. 15 Anas

    The Solution is realesed as alpha version on:

    http://www.heavenstudios.net

  16. 16 aarif

    guys try this you can do the same thing with flash,xml and css.

    http://www.aarif.be/creativeUAE/arabic-in-flash-using-xml-css/

  17. 17 Arasa

    thank you that was so helpful

  18. 18 Jimmy

    Hi Guys,
    there is an application specialized for that. it is called Kalimat (for MAC), or Al Rassam (for windows…).
    the text would appear correct in flash when editing and when compiling.
    the website of the company is http://www.layoutltd.com

    NB: We are hiring:)

  19. 19 NK

    hey, it’s now possible to write arabic in Flash CS3, without having to convert the text to UNICODE! but the it still has to be dynamic.

  20. 20 Anonymous

    You may use UrduNigar to type Arabic, Urdu or Farsi (Persian), You can embed ALKATIB1 True Type font in Flash, this will allow rendering of required Right to Left language.

  21. 21 beedo

    AT first I want to geart you second I have problem and I need your help:

    When I replaced English text with Arabic text the arabic text became hide and disappear
    and we must know that arabic text is static not dynamic because there are animation effects please help me especially in static case not dynamic case why the text became hidden.
    thanks alot please reply me fastly because that is importanr.

  22. 22 hassan kazem

    Great,
    it worked for me
    Thanks alot

  1. 1 Writing arabic in Flash, Dreamweaver, Illustrator « Zakaria Bin Abdur Rouf
  2. 2 links for 2008-07-02 at Alan Vonlanthen’s blog

Leave a Reply