New CXP
Fun online game
Khmer Blog
Site Rank
  • Display Khmer words on the web

  • The macromedia flash player 6 supports Unicode text encoding for flash movies. This ability has greatly help developers to develop flash applications in foreign language without worrying whether the users have particular fonts installed. You can read more about Unicode in Macromedia Flash MX at http://www.macromedia.com

    Because Cambodian Unicode is still at its infancy stage, today I'm going to show you a simplify way to embed Cambodian fonts in flash mx. But first you need a Cambodian font to start with. If you do not have one, you can download it here

    Okay, let's start. Here is what we are going to achieve at the end of this tutorial.



    1- Create a new flash movie and change the size to 350 x 200

    2- Choose a text tool (T) 

    3- Open the Property Inspector (Ctrl+F3)

    4- Change the text field type to "Dynamic Text" or "Input Text" if you want to allow user input at runtime.

    5- Change the font to a Cambodian font and size to relatively bigger than 20 for clarity



    6- Create a text field by click and drag on the main working area

    7- Type some text inside or copy and past some Cambodian text from .doc to the text field.

    8- In the Property Inspector (Ctrl+F3), click on 'character...' button

    9- Click to check embed font outlines for All Characters



    10- Now test your movie by Pressing 'Ctrl + Enter'

    Precaution: While you have done this tutorial correctly, you may encounter the problem that you can't type the character or vowel you want in Flash. Hence if you face this type of problem, there are two solutions to this.

    1- Use the ALT+ Code for that particular font type. For example, ALT+0180 is for 'srak u' and ALT + 0185 is for 'kgnom'.

    2- Type the documents in MS Word then copy and past to flash.

    Embedding new fonts can be a tedious task for beginners but I hope this will help you to start with and once you get the hang of it, the sense of satisfaction will follow.

    Finally, tutorial won't be completed without this source code

    Author, Sokhodom Pheng