MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 225

Actionscript language reference
Table of Contents

Advertisement

unescape()
Availability
Flash Player 5.
Usage
unescape(x:String) : String
Parameters
A string with hexadecimal sequences to escape.
x
Returns
A string decoded from a URL-encoded parameter.
Description
Function; evaluates the parameter
(converting all hexadecimal sequences to ASCII characters), and returns the string.
Example
The following example shows the escape-to-unescape conversion process:
var email:String = "user@somedomain.com";
trace(email);
var escapedEmail:String = escape(email);
trace(escapedEmail);
var unescapedEmail:String = unescape(escapedEmail);
trace(unescapedEmail);
The following result is written to the log file.
user@somedomain.com
user%40somedomain%2Ecom
user@somedomain.com
ActionScript Core Language Elements
as a string, decodes the string from URL-encoded format
x
CHAPTER 5
unescape()
225

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flex

Table of Contents