Creating documents with multilanguage text using the #include action

You can create a document that contains multiple languages using the #include action.

You should save the text file in UTF-8 format. Save the file using an application that supports UTF-8 encoding, such as Dreamweaver.

You must include the following header as the first line of the file, to identify the file as Unicode to the Flash authoring tool:

//!-- UTF8

Note: Be sure to include a space after the second dash (-).

By default, the Flash authoring application assumes that external files that use the #include action 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 authoring tool, create a dynamic or input text field to display the text in the document. For more information, see Working with Text.
  2. In the Property inspector, with the text field selected, assign an instance name to the text field.
  3. Create a text file that defines the value for the text field variable. Remember to add the header //!-- UTF8 at the beginning of the file.
  4. Save the file in UTF-8 format.
  5. Use the #include action to include the external file in the dynamic or input text field. For more information, see #include.