EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Unescape Function

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 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...
90 ActionScript language elements
Example
The following example uses a
trace() statement to display in the Output panel the methods
and properties of the dynamically created text field called
error_txt:
this.createTextField("error_txt", this.getNextHighestDepth(), 0, 0, 100,
22);
for (var i in error_txt) {
trace("error_txt."+i+" = "+error_txt[i]);
}
/* output:
error_txt.styleSheet = undefined
error_txt.mouseWheelEnabled = true
error_txt.condenseWhite = false
...
error_txt.maxscroll = 1
error_txt.scroll = 1
*/
unescape function
unescape(x: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 Lite 2.0
Parameters
string:String - A string with hexadecimal sequences to escape.
Returns
String - A string decoded from a URL-encoded parameter.
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 displayed in the Output panel.
user@somedomain.com
user%40somedomain%2Ecom
user@somedomain.com

Table of Contents

Related product manuals