fscommand2()
125
Example
Examples are provided with the specific commands that you execute using the
fscommand2()
function, which are described in the rest of this section.
See also
fscommand()
Escape
Availability
Flash Lite 1.1.
Description
Encodes an arbitrary string into a format that is safe for network transfer. Replaces each
nonalphanumeric character with a hexadecimal escape sequence (
%
xx
, or
%
xx
%
xx
in the case of
multibyte characters).
Example
The following example shows the conversion of a sample string to its encoded form:
original_string = "Hello, how are you?";
status = fscommand2("escape", original_string, "encoded_string");
trace (encoded_string);
// output: Hello%2C%20how%20are%20you%3F
See also
Unescape
Command
Parameters
Value returned
"Escape"
original
String to be encoded into a format safe
for URLs.
encoded
Resulting encoded string.
These parameters are either names of variables or
constant string values (for example,
"Encoded_String"
).
0: Failure.
1: Success.
Summary of Contents for FLASH 8-FLASH
Page 1: ...Flash Lite 1 x ActionScript Language Reference...
Page 6: ...6 Contents...
Page 46: ...46 Flash Lite Global Functions...
Page 62: ...62 Flash Lite Properties...
Page 76: ...76 Flash Lite Statements...
Page 110: ...110 Flash Lite Operators...
Page 162: ...162 Index...