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”;

For example:
about_me_text = “<p><b style=’font-size:200%;’>About Me</b><p><br />“;

about_me_text += “<p>Author: Me<br>Department of Me Studies<br>Myself University <br></p><br >”;
about_me_text += “<p>More text<br></p><br >”;

Note: When you add an extra line, make sure your actionscript code has a + in it.

2. Go to the layer you want to add the text. Add a text box.

3. Open up the actionscript window for that layer. Paste in your text (with the actionscript and html markup in step 1)

4. Click on the text box. In the text box properties choose Dynamic Text

5. In Dynamic Text, there is a an instance textbox. Type in the instance name in the actionscript code. For this example, that would be: about_me_text

6. Under Paragraph in the text properties, in Behavior choose Multiline.

7. Under Options in the Text Properties, type in the same instance name for the Variable text box. In this example it would be:  about_me_text. (You can copy and paste the text you enter in step 5).

8. Render your movie.

Note: You can change the color, font type, and size in the Text Properties menu too.

How to Use Audacity to Break Audio Clips Up and Export as Separate Files

Audacity-logo-r_50pct.jpg

Did you ever have a long audio clip that you wanted to break up into
smaller files based off of pauses or silence breaks in your audio? Sure
you can do it manually with a program like Audacity, but Audacity also
has a Silence Analyzer that will insert labels in places where there is
silence in the clip and from those tags you can export the audio into
smaller chunks all in one step. Here’s how to do that.

  1. Open up Audacity. Load your audio clip.
  2. Now use the cursor to scroll over the shortest silence period in
    your clip. This is where a label will be inserted to show a break in
    audio parts. You are measuring the time.
  3. Look at the bottom of Audacity. You will see how long that silence period is.
  4. Now select all your audio clip by clicking Control  + A.
  5. Now go to the Analyze menu.
  6. Choose  Silence Finder
  7. In the minimum silence duration text box, type in the number you
    saw at the bottom of Audacity when you measured the shortest silence
    period in the clip.
  8. Click OK
  9. Now you will see a series of labels with a S. You can also manually
    enter labels (if the analyzer missed any spots) by clicking on the
    silence spot and pressing Control + B.
  10. Now that all your silence spots are marked to break up the clips, go to File  and choose Export Multiple.
  11. Choose the format (wav, mp3), where to save it, how to name it, and choose Split based on labels.
  12. Click OK.