MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 249

Hide thumbs Also See for FLASH MX 2004-USING FLASH:
Table of Contents

Advertisement

You should save the external file in UTF-8 (recommended), UTF-16BE, or UTF-16LE format,
using an application that supports the format. If you are using UTF-16BE or UTF-16LE format,
the file must begin with a BOM to identify the encoding format to Flash Player. For more
information, see
Note: If the external file is an XML file, you cannot use an XML encoding tag to change the encoding
of the file. You should save the file in a supported Unicode format. For more information, see
encoding in external XML files" on page
To include multilanguage text using an externally loaded file:
In the Flash authoring tool, create a dynamic or input text field to show the text in the
1.
document. For more information, see
In the Property inspector, with the text field selected, assign an instance name to the text field.
2.
Create a text or XML file that defines the value for the text filed variable.
3.
Save the file in UTF-8 (recommended), UTF-16BE, or UTF-16LE format.
4.
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.
Note: Most text editors that can save files in UTF-16BE or LE automatically add the BOMs to
the files.
Use one of the following ActionScript procedures to reference the external file and load it into
5.
the dynamic or input text field:
Use the
loadVariables
loadVariables()
Use the
getURL
see
getURL()
Use the
LoadVars
from a specified URL. For more information, see "LoadVars class" in Flash ActionScript
Language Reference.
Use the
XML
specified URL. For more information, see "XML class" in Flash ActionScript Language
Reference.
Creating documents with multilanguage text using the #include action
You can create a document that contains multiple languages using the
You should save the text file in UTF-8 format. Save the file using an application that supports
UTF-8 encoding, such as Dreamweaver.
"Unicode encoding formats supported by Flash Player" on page
action to load an external file. For more information, see
in Flash ActionScript Language Reference.
action to load an external file from a specified URL. For more information,
in Flash ActionScript Language Reference.
object (a predefined client-server object) to load an external text file
object (a predefined client-server object) to load an external XML file from a
Creating documents with multilanguage text without using the Strings panel
237.
Chapter 6, "Working with Text," on page
237.
"About
105.
action.
#include
249

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents