beautypg.com

Adobe Flash Professional CC 2014 v.13.0 User Manual

Page 297

background image

superscripts and subscripts, currency symbols, and letter-like
symbols)

Latin Extended B

Latin Extended-B range 0x0180 to 0x024F (including punctuation,
superscripts and subscripts, currency symbols, and letter-like
symbols)

Latin Extended Add'l

Latin Extended Additional range 0x1E00 to 0x1EFF (including
punctuation, superscripts and subscripts, currency symbols, and
letter-like symbols)

Greek

Greek and Coptic, plus Greek Extended (including punctuation,
superscripts and subscripts, currency symbols, and letter-like
symbols)

Cyrillic

Cyrillic (including punctuation, superscripts and subscripts,
currency symbols, and letter-like symbols)

Armenian

Armenian plus ligatures

Arabic

Arabic plus Presentation Forms-A and Presentation Forms-B

Hebrew

Hebrew plus Presentation Forms (including punctuation,
superscripts and subscripts, currency symbols, and letter-like
symbols)

Non-Unicode external files

If you load external text or XML files that are not Unicode-encoded into a Flash Player 7 application, the text in the external files does not appear
correctly when Flash Player attempts to show them as Unicode. To tell Flash Player to use the traditional code page of the operating system that
is running the player, add the following code as the first line of code in the first frame of the Flash Professional application that is loading the data:

system.useCodepage = true;

Set the system.useCodepage property only once in a document; do not use it multiple times in a document to make the player interpret some
external files as Unicode and some as other encoding, because this can yield unexpected results.

If you set the system.useCodepage property to true, the traditional code page of the operating system running the player must include the glyphs
used in your external text file for the text to appear. For example, if you load an external text file that contains Chinese characters, those
characters do not appear on a system that uses the CP1252 code page, because that code page does not include Chinese characters. To ensure
that users on all platforms can view external text files used in your Flash Professional applications, encode all external text files as Unicode and
leave the system.useCodepage property set to false by default. This causes Flash Player to interpret the text as Unicode. For more information,
see useCodepage (System.useCodepage property) in the

ActionScript 2.0 Language Reference

.

Text encoding

All text in a computer is encoded as a series of bytes. Many different forms of encoding (and therefore, different bytes) represent text. Different
kinds of operating systems use different kinds of encoding for text. For example, Western Windows operating systems usually use CP1252
encoding; Western Macintosh operating systems usually use MacRoman encoding; Japanese Windows and Macintosh systems usually use
Unicode encoding.

Unicode can encode most languages and characters used throughout the world. The other forms of text encoding that computers use are subsets
of the Unicode format, tailored to specific regions of the world. Some of these forms are compatible in some areas and incompatible in other areas,
so using the correct encoding is critical.

Unicode has several forms. Flash Player versions 6 and 7 and later support text or external files in the 8-bit Unicode format UTF-8, and in the
16-bit Unicode formats UTF-16 BE (Big Endian) and UTF-16 LE (Little Endian).

Unicode and Flash Player

Flash Player 6 and later versions support Unicode text encoding. Users with Flash Player 6 or later can view multilanguage text, regardless of the
language that the operating system running the player uses, if they have the correct fonts installed.

Flash Player assumes that all external text files associated with a Flash Player application are Unicode encoded, unless you tell the player
otherwise.

For Flash Professional applications in Flash Player 5 or earlier that are authored in Flash MX or earlier, Flash Player 6 and earlier versions display
the text by using the traditional code page of the operating system running the player.

For background information on Unicode, see Unicode.org.

290