
366
Creating Multilanguage Text
Most text editors that can save files in UTF-16BE or LE automatically add the BOMs to the
files.
About encoding in external XML files
You cannot change the encoding of an XML file by changing the encoding tag. Flash Player
identifies the encoding of an external XML file using the same rules as for all external files: If
no BOM is encountered at the beginning of the file, the file is assumed to be in UTF-8
encoding. If a BOM is encountered, the file is interpreted as UTF-16BE or LE. For more
information, see
“Unicode encoding formats supported by Flash Player” on page 365
.
About fonts for Unicode-encoded text
When you use external files that are Unicode encoded, your users must have access to fonts
containing all the glyphs used in your text files. By default, Flash stores the names of fonts
used in dynamic or input text files. During SWF file playback, Flash Player 7 (and earlier
versions) looks for those fonts on the operating system running the player.
If the text in a SWF file contains glyphs that are not supported by the specified font, both
Flash Player 7 and Flash Player 8 attempt to locate a font on the user’s system that supports
those glyphs. It is not always possible for the player to locate an appropriate font. The
behavior of this function depends on the fonts available on the user’s system as well as on the
operating system running Flash Player.
Using embedded fonts
You can embed fonts for dynamic or input text fields. However, some fonts, particularly those
used for Asian languages, can add significantly to the SWF file size when embedded. With
Flash Basic 8 and Flash Professional 8, you can select ranges of fonts you want to embed.
You can also embed fonts by creating a font symbol in the library. For more information on
this technique, see
“Creating font symbols” on page 173
.
NO
T
E
If you set the
system.useCodepage
property to
true
, the text is interpreted using the
traditional code page of the operating system that is running the player; it is not
interpreted as Unicode. For more information, see
“Using external text or XML files that
are not Unicode-encoded” on page 385
.
Summary of Contents for FLASH 8-USING FLASH
Page 1: ...Using Flash...
Page 12: ...12 Contents...
Page 110: ...110 Using Symbols Instances and Library Assets...
Page 128: ...128 Working with Color Strokes and Fills...
Page 156: ...156 Drawing...
Page 190: ...190 Working with Text...
Page 224: ...224 Working with Graphic Objects...
Page 270: ...270 Creating Motion...
Page 310: ...310 Working with Video...
Page 362: ...362 Working with Screens Flash Professional Only...
Page 386: ...386 Creating Multilanguage Text...
Page 454: ...454 Data Integration Flash Professional Only...
Page 500: ...500 Publishing...
Page 534: ...534 Creating Accessible Content...