How to Render Arabic Text Properly in Flash CS4 with Actionscript

I have been working on a project that requires to have Arabic text in a flash website. The issue is that every time we add Arabic text, some of the letters get flipped when we export the movie (.swf file). Here is a work around that my boss (Ben Johnston) discovered. It uses actionscript and html code. Here are the steps below:

1. Create a text file with all the Arabic text you want to put into the fla file. Use HTML markup to create paragraphs, texts aligns etc. At the beginning of each line, you will write this actionscript code: instance_name=”html text”;