03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Parameters<br />

expression:Object - An expression to evaluate. When a SWF file is opened in the Flash<br />

authoring tool (using the Test Movie comm<strong>and</strong>), the value of the expression parameter is<br />

displayed in the Output panel.<br />

Example<br />

The following example uses a trace() statement to display in the Output panel the methods<br />

<strong>and</strong> properties of the dynamically created text field called error_txt:<br />

this.createTextField("error_txt", this.getNextHighestDepth(), 0, 0, 100,<br />

22);<br />

for (var i in error_txt) {<br />

trace("error_txt."+i+" = "+error_txt[i]);<br />

}<br />

/*<br />

error_txt.styleSheet = undefined<br />

error_txt.mouseWheelEnabled = true<br />

error_txt.condenseWhite = false<br />

...<br />

error_txt.maxscroll = 1<br />

error_txt.scroll = 1<br />

*/<br />

unescape function<br />

unescape(string:String) : String<br />

Evaluates the parameter x as a string, decodes the string from URL-encoded format<br />

(converting all hexadecimal sequences to ASCII characters), <strong>and</strong> returns the string.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 5<br />

Parameters<br />

string:String - A string with hexadecimal sequences to escape.<br />

Returns<br />

String - A string decoded from a URL-encoded parameter.<br />

114 <strong>ActionScript</strong> language elements

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!