Creating Multilanguage Text > Creating movies with multilanguage text using #include |
![]() ![]() ![]() |
Creating movies with multilanguage text using #include
One way to create a movie that contains multiple languages is to include a text file in the movie using the #include
action.
For example, if you are working on a Western Windows operating system and you want to include Chinese or Korean characters in a movie, you can place the Chinese or Korean text into an external text file, and include the external file in the Flash movie.When the #include
action is invoked, the contents of the specified text file are included in the movie when the movie is published, exported, or tested.
You should save the text file in UTF-8 format. Save the file using an application that supports UTF-8 encoding, such as Notepad for Windows 2000.
You must include the following header as the first line of the file, to identify the file as Unicode to the Flash MX authoring tool:
//!-- UTF8
Note: Be sure to include a space after the second dash (-).
By default, the Flash MX authoring tool assumes that external files included using #include
are encoded in the traditional code page of the operating system running the authoring tool. Using the //!-- UTF8
header in a file tells the authoring tool that the external file is encoded as UTF-8.
To include multilanguage text using the #include action:
1 |
In the Flash MX authoring tool, create a dynamic or input text field that will display the text in the movie. For more information, see Working with Text. |
2 |
Assign a variable to the text field, for example, |
3 |
Create a text file that defines the value for the text field variable. Remember to add the header |
4 |
Save the file in UTF-8 format. |
5 |
Use the |
![]() ![]() ![]() |