
272
USING FLASH CS4 PROFESSIONAL
Text
Creating multilanguage documents by using text variables
To include Unicode-encoded contents in text variables, use the syntax
\uXXXX
, where
XXXX
is the four-digit
hexadecimal code point, or
escape
character, for the Unicode character. The Flash authoring tool supports Unicode
escape characters through
\uFFFF
. To find the code points for Unicode characters, see the Unicode Standard at
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
myTextVar
instance name) that contains Japanese, Korean, 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
“
Create multilanguage documents using the #include action
” on page 271
Using the XMLConnector component to connect to external XML files
Use the version 2 XMLConnector component to connect to an external XML document to bind to properties in the
document. Its purpose is to read or write XML documents by using HTTP
GET
operations,
POST
operations, or both.
It acts as a connector between other components and external XML documents. The XMLConnector communicates
with components in your application by using either data-binding features in the Flash authoring environment or
ActionScript code. For more information, see XML Connector component in the
ActionScript 2.0 Components
Language Reference
.
Updated 5 March 2009