Create multilanguage documents using the #include action

To create a document that contains multiple languages, use the #include action.

Use an application that supports UTF‑8 encoding, such as Dreamweaver, to save the text file in UTF‑8 format.

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

//!-- UTF8
Note: 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.

  1. In the Flash authoring tool, create a dynamic or input text field to display the text in the document.
  2. In the Property inspector, with the text field selected, assign an instance name to the text field.
  3. Outside of Flash, create a text file that defines the value for the text field variable. Add the //!-- UTF8 header at the beginning of the file.
  4. Save the text file in UTF‑8 format.
  5. To include the external file in the dynamic or input text field, use the #include directive. For more information, see #include directive in the ActionScript 2.0 Language Reference.
Related Information

  This page on the Web