"do not target money, target happiness..."

blogs.she7ata.com, mohammed shehata personal showcase and blogs website.

she7ata.com » blogs » articles » Flash Arabic Support?, a 2005 old reply on developmentnow.com

Flash Arabic Support?, a 2005 old reply on developmentnow.com

published at:10/10/2008, Tutorials, Flash & AS,
published by: she7ata

Original link

http://www.developmentnow.com/g/68_2005_7_0_0_556291/Flash-Arabic-Support-.htm
 
 

Rothrock
7/7/2005 12:00:00 AM

I've done quite a bit with another complex script, Devanagari for Hindi. While
not being RTL, it also has a number of interesting problems in Flash.

My solution was to compose my text in an external text editor and save as
unicode (UTF8), then import to Flash using either the XML or LoadVars classes ?
depending upon my purpose for each little part. I'm on a Macintosh, so I use
TextEdit, but my Hindi professor is on a PC and she uses something called
Takhti. So as long as the applications supports unicode it shouldn't matter
which platform you are on.

As Mohammed points out, Flash doesn't break the lines properly. I had to write
my own code to do line breaking. I am happy to share it, but will be away from
my home computer for the next two days.

Now one problem I've found is that if you embed the fonts in the textfields,
Flash will not properly render the text. The characters will show, but they
will be in the wrong order or placed incorrectly. This is with Hindi and Greek,
but I'm sure it will also apply to Arabic. You will probably just get the
isolated forms for each letter or something like that.

My solution was to not embed the fonts. This requires that the end user has
unicode support and a font installed for the language. Of course between the
Mac and PC there are different fonts with different sizes, etc. You just have
to take that into account when you design your page.

Good luck.
 
  Naveed Attari
7/7/2005 9:51:45 AM
:confused;

I?m facing a very serious problem.
How to write Arabic in flash???? I used some software?s but the problem is
that we are working on a fully flash based dynamic website. But Flash MX
doesn?t support Arabic. Kindly help me what to do?

Naveed
 
  she7ata
7/7/2005 1:41:05 PM
Peace be upon you,

    Yes sir, the Flash doesn't support Arabic very well, however you still can
write Arabic text using the normal Flash edit box, but remember you still will
face a problem wrapping the text correctly, yes Flash cases error wrapping the Arabic
characters and letters if you write very long string.

What do you have to do to write Arabic?

1) Open Flash, Create a new movie.
2) Use the 'Text Tool' and draw a region for your Text.
3) Change the filed type to 'Dynamic Text' and NOT 'Static!', this is very
important'.
4) Change font type to 'Traditional Arabic' which is standard or 'Arabic
Transparent' , 'Arial' also fine.
5) Change the font direction or the alignment to the right  .
6) Write you text inside the Text box area.
7) Ctrl+Enter to preview movie, viola! You have a Arabic text.

please notice.
- If you have very long text, you have to warp it manually, means, you have to
press Enter in the end of each line
- If you have English letters between the Arabic letters, it will be hell to
fix that manually ?.

Make sure of :

1) Make sure that your O.S is Arabic enable first ? lol.
2) Windows NT/XP region and language setting.
- Go to 'regional and language settings' from 'control panel'
- From 'Advanced' tab, select 'Arabic (Egypt)' from the first down
combo-box

Finally
- You still can load Arabic text from XML, Text files.
- There is alot of articles on Macromedia Forum about Arabic issues, and i
wonder why Macromedia dosn't resolve this issues.
- You still can write arabic using extra tools, like CorelDRAW, elWaseet,Swish
..

Good luck
Mohammed Shehata
Senior multimedia developer.
  Naveed Attari
7/10/2005 8:57:45 AM
Dear Mohammed Shehata, ... thanks a lot ... now i can write arabic in flash ....
 

 


  categories

 » recent posts

 � recent replies

 » friends & links


COMMENT(S)

ADD COMMENT

name:*
email:*
website:
comment:
captcha:
she7ata.com, owned and managed by mohammed shehata
(C) 2000~2009
QUICK LINKS BLACKHAND, ELWARSHA, BLOGS, PORTFOLIOS
she7ata'sBlogs v1.0, beta, not just another wordpress or joomla site!