Creating documents with multilanguage text without using the Strings panel 383
4. Save the file in UTF-8 (recommended), UTF-16BE, or UTF-16LE format.
If you are using UTF-16 format, make sure a BOM is included at the beginning of the file
to identify the encoding:
■ For UTF-16BE, the first byte of the file should be OxFE, and the second byte should
be OxFF.
■ For UTF-16LE, the first byte of the file should be OxFF, and the second byte should
be OxFE.
5. Use one of the following ActionScript procedures to reference the external file and load it
into the dynamic or input text field:
■ Use the loadVariables action to load an external file. For more information, see
loadVariables
function in the ActionScript 2.0 Language Reference.
■ Use the getURL action to load an external file from a specified URL. For more
information, see
getURL function in ActionScript 2.0 Language Reference.
■ Use the LoadVars object (a predefined client-server object) to load an external text file
from a specified URL. For more information, see LoadVars in ActionScript 2.0
Language Reference.
■ Use the XML object (a predefined client-server object) to load an external XML file
from a specified URL. For more information, see XML in the ActionScript 2.0
Language Reference.
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
Most text editors that can save files in UTF-16BE or LE automatically add the
BOMs to the files.
NOTE
Be sure to include a space after the second dash (-).