Flash Lite 1.x ActionScript Language Reference |
|
||
| Flash Lite Specific Language Elements > fscommand2() > Unescape | |||
Flash Lite 1.1.
Decodes an arbitrary string that was encoded to be safe for network transfer into its normal, unencoded form. All characters that are in hexadecimal format, that is, a percent character (%) followed by two hexadecimal digits, are converted into their decoded form.
|
Command |
Parameters |
Value returned |
|---|---|---|
|
|
(This parameter can be either the name of a variable or a string value that contains the name of a variable.) |
0: Failure. 1: Success. |
The following example shows the decoding of an encoded string:
encoded_string = "Hello%2C%20how%20are%20you%3F";
status = fscommand2("unescape", encoded_string, "normal_string");
trace (normal_string); // output: Hello, how are you?
|
|
||