Accessibility
 
Home > Products > Flash > Support > Working with Multiple Languages
Flash Icon Macromedia Flash Support Center - Working with Multiple Languages
Unicode in Macromedia Flash MX

The Macromedia Flash Player 6 supports Unicode text encoding for SWF movies in Macromedia Flash Player 6 format. This support greatly enhances your ability to use multilingual text in SWF movies that you create with Macromedia Flash MX, including multiple languages within a single text field. Any user with the Macromedia Flash Player 6 can view multilanguage text in a Macromedia Flash Player 6 movie, regardless of the language used by the operating system running the player.

To successfully take advantage of Unicode support in Macromedia Flash MX and the Macromedia Flash Player 6, it is important to be familiar with factors affecting text encoding:

You can include text in multiple languages in a Macromedia Flash Player 6 movie by including an external text file in a dynamic or input text field, using the #include action. See Creating movies with multilanguage text using #include.
You can include text in multiple languages by loading external text or XML files into a movie at runtime using the loadVariables action, the getURL action, the LoadVars object, or the XML object. See Creating movies with multilanguage text by loading external text or XML files.
You can include text in multiple languages by entering Unicode escape characters in the string value for a dynamic or input text field variable. See Creating movies with multilanguage text using text variables.
When you are authoring a movie, the Macromedia Flash MX authoring tool encodes text in the FLA document using the traditional code page of the operating system running the authoring tool. Text in the document is encoded in Unicode format when you publish or export the movie in Macromedia Flash Player 6 format. See Computer text encoding overview and About text encoding in the Macromedia Flash MX authoring tool.
When you are authoring a movie, any text you enter directly into Macromedia Flash MX must be supported by the traditional code page of the operating system running the authoring tool. You cannot cut and paste Unicode-encoded text into Macromedia Flash MX. See About text encoding in the Macromedia Flash MX authoring tool.
With Unicode encoded text, as with all text, users must have access to fonts containing the glyphs (characters) used in that text in order to display it correctly. See About fonts for Unicode-encoded text.
The Macromedia Flash Player 6 assumes that all external text files associated with a Macromedia Flash Player 6 movie are Unicode encoded, unless you tell the player otherwise. If you use external text files that are not Unicode encoded, you can set system.useCodepage = true to tell the Macromedia Flash Player 6 to use the traditional code page of the operating system running the player. See Using external text or XML files that are not Unicode encoded.
For movies in version Macromedia Flash Player 5 or earlier that are authored in Macromedia Flash MX or earlier, the Macromedia Flash Player 6 and earlier versions display the text using the traditional code page of the operating system running the player.

For background information on Unicode, see http://www.unicode.org.

Computer text encoding overview
About text encoding in the Macromedia Flash MX authoring tool
About text encoding in the Macromedia Flash Player 6
About Unicode encoding formats supported by the Macromedia Flash Player 6
Creating movies with multilanguage text using #include
Creating movies with multilanguage text by loading external text or XML files
Creating movies with multilanguage text using text variables
About encoding in external XML files
About fonts for Unicode encoded text
Using external text or XML files that are not Unicode encoded


Mary Burger

Mary Burger is a Senior Technical Writer at Macromedia. She specializes in Macromedia Flash documentation.


21 May 2002

Flash MX, Flash Player 6, Unicode, text, text encoding, system.useCodepage, multilanguage text, tutorial

9922