Usecodepage (System.usecodepage Property) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Example
The following example shows how to create a
information objects when a class-specific onStatus() function does not exist:
// Create generic function
System.onStatus = function(genericError:Object){
// Your script would do something more meaningful here
trace("An error has occurred. Please try again.");
}
See also
onStatus (SharedObject.onStatus handler)

useCodepage (System.useCodepage property)

public static useCodepage :
A Boolean value that tells Flash Player whether to use Unicode or the traditional code page of
the operating system running the player to interpret external text files. The default value of
System.useCodepage
When the property is set to false, Flash Player interprets external text files as Unicode.
(These files must be encoded as Unicode when you save them.)
When the property is set to true, Flash Player interprets external text files using the
traditional code page of the operating system running the player.
Text that you load as an external file (using the
the LoadVars class or XML class) must be encoded as Unicode when you save the text file in
order for Flash Player to recognize it as Unicode. To encode external files as Unicode, save the
files in an application that supports Unicode, such as Notepad on Windows 2000.
If you load external text files that are not Unicode-encoded, you should set
System.useCodepage
frame of the SWF file that is loading the data:
System.useCodepage = true;
When this code is present, Flash Player interprets external text using the traditional code page
of the operating system running Flash Player. This is generally CP1252 for an English
Windows operating system and Shift-JIS for a Japanese operating system. If you set
System.useCodepage
Player 5 treated all text as if it were in the traditional code page of the operating system
running the player.)
644
ActionScript classes
Boolean
is false.
to true. Add the following code as the first line of code in the first
to true, Flash Player 6 and later treat text as Flash Player 5 does. (Flash
System.onStatus()
or
loadVariables()
function to process
statements, or
getURL()

Advertisement

Table of Contents
loading

Table of Contents