User Guide

250 ActionScript classes
trace(x_array[3]); // 1
trace(x_array[4]); // 2, 3
trace(x_array[5]); // 4
DESCENDING (Array.DESCENDING property)
public static DESCENDING : Number
In the sorting methods, this constant specifies descending sort order. You can use this constant
for the
options parameter in the sort() or sortOn() method.
The value of this constant is 2.
Availability: ActionScript 1.0; Flash Player 7
See also
sort (Array.sort method), sortOn (Array.sortOn method)
join (Array.join method)
public join([delimiter:String]) : String
Converts the elements in an array to strings, inserts the specified separator between the
elements, concatenates them, and returns the resulting string. A nested array is always
separated by a comma (,), not by the separator passed to the
join() method.
Availability: ActionScript 1.0; Flash Player 5
Parameters
delimiter:String [optional] - A character or string that separates array elements in the
returned string. If you omit this parameter, a comma (,) is used as the default separator.
Returns
String - A string.
Example
The following example creates an array with three elements: Earth, Moon, and Sun. It then
joins the array three times—first by using the default separator (a comma [,] and a space),
then by using a dash (-), and then by using a plus sign (+).
var a_array:Array = new Array("Earth","Moon","Sun")
trace(a_array.join());
// Displays Earth,Moon,Sun.
trace(a_array.join(" - "));
// Displays Earth - Moon - Sun.