
LoadVars.contentType Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
577
•IfSystem.useCodepage is true and the system is not an Asian language double-byte
system, the character is replaced with a hexadecimal escape sequence
%xx, where
xx is the hex code point for the character. The code point is determined using the
system code page (typically Latin 1 on most Western computers). Note that on
Macs, the system code page is Mac Roman, but Flash uses Latin 1 instead.
•If
System.useCodepage is true and the system is an Asian language double-byte sys-
tem, the character is replaced with a hexadecimal escape sequence
%xx or %xx%xx,
using the double-byte character encoding supported by the system (for example,
Shift-JIS).
• Flash 5 and previous Players behave as if
System.useCodepage is true.
The following code shows the contents of a text file to be imported into Flash. The
imported variables are
name and address, which have the values "stephen" and "65 nowhere
st!"
, respectively (note that the exclamation point is encoded as %21):
name=stephen&address=65+nowhere+st%21
Generally, server-side applications automatically URL encode variables for transmission to
Flash, but variables in text files must be URL-encoded by hand. For example, in Flash
Player 5 (or when
System.useCodePage is true in Flash Player