Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Specific Language Elements > fscommand2() > Escape | |||
Flash Lite 1.1.
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).
|
Command |
Parameters |
Value returned |
|---|---|---|
|
|
These parameters are either names of variables or constant string values (for example, |
0: Failure. 1: Success. |
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
|
|
|
|