Adobe 38039336 - Flash CS3 Professional User Manual page 296

User guide
Hide thumbs Also See for 38039336 - Flash CS3 Professional:
Table of Contents

Advertisement

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
the traditional code page of the operating system running the authoring tool. Using the
tells the authoring tool that the external file is encoded as UTF-8.
In the Flash authoring tool, create a dynamic or input text field to display the text in the document.
1
In the Property inspector, with the text field selected, assign an instance name to the text field.
2
3
Outside of Flash, create a text file that defines the value for the text field variable. Add the
the beginning of the file.
Save the text file in UTF-8 format.
4
5
To include the external file in the dynamic or input text field, use the
see
directive in the ActionScript 2.0 Language Reference.
#include
See also
"Working with text" on page 261
Creating multilanguage documents by using text variables
To include Unicode-encoded contents in text variables, use the syntax
hexadecimal code point, or escape character, for the Unicode character. The Flash authoring tool supports Unicode
escape characters through
Unicode.org.
You can use Unicode escape characters only in text field variables. You cannot include Unicode escape characters in
external text or XML files; Flash Player 6 does not recognize Unicode escape characters in external files.
For example, to set a dynamic text field (with the
Chinese, English, and Greek characters and the Euro sign, enter the following:
myTextVar.text = "\u304B\uD55C\u6C49hello\u03BB\u20AC";
When the SWF file plays, the following characters appear in the text field:
For best results when creating a text field that contains multiple languages, use a font that includes all the glyphs your
text needs.
See also
"Non-Unicode external files" on page 280
. To find the code points for Unicode characters, see the Unicode Standard at
\uFFFF
myTextVar
#include
//!-- UTF8
directive. For more information,
#include
, where
\uXXXX
XXXX
instance name) that contains Japanese, Korean,
FLASH CS3
User Guide
action are encoded in
header in a file
header at
//!-- UTF8
is the four-digit
290

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash cs3 professional

Table of Contents