System.useCodepage
665
Description
Method; displays the specified Flash Player Settings panel, which lets users do any of the
following:
•
Allow or deny access to the camera and microphone
•
Specify the local disk space available for shared objects
•
Select a default camera and microphone
•
Specify microphone gain and echo suppression settings
For example, if your application requires the use of a camera, you can tell the user to select Allow
in the Privacy Settings panel, and then issue a
System.showSettings(0)
command. (Make sure
your Stage size is at least 215 x 138 pixels; this is the minimum size Flash requires to display
the panel.)
See also
Camera.get()
,
Microphone.get()
,
SharedObject.getLocal()
System.useCodepage
Availability
Flash Player 6.
Usage
System.useCodepage
Description
Property; 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
is
false
.
•
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 include or load as an external file (using the
#include
command, the
loadVariables()
or
getURL
actions, or the LoadVars or XML objects) 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 include or load external text files that are not Unicode-encoded, you should set
system.useCodepage
to
true
. Add the following code as the first line of code in the first 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
to
true
, Flash Player 6 and later treat text as Flash Player 5 does. (Flash Player 5 treated all text as
if it were in the traditional code page of the operating system running the player.)
Содержание FLASH MX 2004 - ACTIONSCRIPT
Страница 1: ...ActionScript Reference Guide...
Страница 8: ...8 Contents...
Страница 12: ......
Страница 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Страница 54: ...54 Chapter 2 ActionScript Basics...
Страница 80: ...80 Chapter 3 Writing and Debugging Scripts...
Страница 82: ......
Страница 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Страница 112: ......
Страница 120: ...120 Chapter 6 Using the Built In Classes...
Страница 176: ......
Страница 192: ...192 Chapter 10 Working with External Data...
Страница 202: ...202 Chapter 11 Working with External Media...
Страница 204: ......
Страница 782: ...782 Chapter 12 ActionScript Dictionary...
Страница 793: ...Other keys 793 221 222 Key Key code...
Страница 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Страница 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Страница 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Страница 816: ...816 Index...