EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE - Page 125

MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE
162 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.

Table of Contents

Related product manuals