Creating Multilanguage Text > Creating movies with multilanguage text using text variables |
![]() ![]() ![]() |
Creating movies with multilanguage text using text variables
You can include Unicode-encoded contents in text variables using the syntax \uXXXX, where XXXX is the four-digit hexadecimal code point, or escape character, for the Unicode character. The Flash MX authoring tool supports Unicode escape characters up through \uFFFF. To find the code points for Unicode characters, refer to the Unicode Standard at http://www.unicode.org.
Note: You can use Unicode escape characters only in text field variables. You cannot include Unicode escape characters in external text or XML files; the Flash Player 6 will not recognize Unicode escape characters in external files.
For example, to set a dynamic text field (with the variable name myTextVar
) that contains Japanese, Korean, Chinese, English, Hebrew, and Greek characters and the Euro sign, you can enter the following:
myTextVar = "\u304B\uD55C\u6C49hello\u05E2\u03BB\u20AC";
When the movie plays, the text field displays the following:
For best results when creating a text field that contains multiple languages, make sure to use a font that includes all the glyphs needed for your text. See Fonts for Unicode-encoded text.
![]() ![]() ![]() |