Using External Text Or Xml Files That Are Not Unicode Encoded - MACROMEDIA FLASH MX 2004-USING FLASH Use Manual

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

Advertisement

Using external text or XML files that are not Unicode encoded

If you load external files into a Flash Player 7 application that are not Unicode-encoded, the text
in the external files does not appear correctly when Flash Player attempts to show them as
Unicode. You can tell Flash Player to use the traditional code page of the operating system that is
running the player. To do this, add the following code as the first line of code in the first frame of
the Flash application that is loading the data:
system.useCodepage = true;
Set the
property only once in a document; do not use it multiple times in
system.useCodepage
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
property to
, remember that the traditional code page of
system.useCodepage
true
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 applications, you should encode all external text files as Unicode and
leave the
property set to
by default. This causes Flash Player to
system.useCodepage
false
interpret the text as Unicode. For more information, see
in Flash
System.useCodepage
ActionScript Language Reference.
Using external text or XML files that are not Unicode encoded
251

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING FLASH and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents