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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

var x_array:Array = a_array.concat(n_array);<br />

trace(x_array[0]); // a<br />

trace(x_array[1]); // b<br />

trace(x_array[2]); // c<br />

trace(x_array[3]); // 1<br />

trace(x_array[4]); // 2, 3<br />

trace(x_array[5]); // 4<br />

DESCENDING (Array.DESCENDING property)<br />

public static DESCENDING : Number<br />

In the sorting methods, this constant specifies descending sort order. You can use this constant<br />

for the options parameter in the sort() or sortOn() method.<br />

The value of this constant is 2.<br />

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

See also<br />

sort (Array.sort method), sortOn (Array.sortOn method)<br />

join (Array.join method)<br />

public join([delimiter:String]) : String<br />

Converts the elements in an array to strings, inserts the specified separator between the<br />

elements, concatenates them, <strong>and</strong> returns the resulting string. A nested array is always<br />

separated by a comma (,), not by the separator passed to the join() method.<br />

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

Parameters<br />

delimiter:String [optional] - A character or string that separates array elements in the<br />

returned string. If you omit this parameter, a comma (,) is used as the default separator.<br />

Returns<br />

String - A string.<br />

256 <strong>ActionScript</strong> classes

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

Saved successfully!

Ooh no, something went wrong!