Flash 8 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript language elements > Global Functions > unescape function | |||
unescape(string:String) : String
Evaluates the parameter x as a string, decodes the string from URL-encoded format (converting all hexadecimal sequences to ASCII characters), and returns the string.
Availability: ActionScript 1.0; Flash Player 5
string:String - A string with hexadecimal sequences to escape.
String - A string decoded from a URL-encoded parameter.
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 displayed in the Output panel.
user@somedomain.com user%40somedomain%2Ecom user@somedomain.com
Version 8
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00001779.html
Comments
Mr. Allen Manning said on Feb 22, 2006 at 8:27 AM : No screen name said on Feb 7, 2007 at 12:46 PM : Crossems said on May 14, 2007 at 9:04 AM : juankpro said on Aug 1, 2007 at 9:45 AM :