Array.toString()
Top  Previous  Next


SWiSH Player Support
SWF5 or later - Supported Internally

Syntax
arrayName.toString();

Arguments
None.

Returns
A string.

Description
Method; outputs a string containing the individual elements in the specified Array. The elements will be concatenated and separated by commas.

Sample
onLoad() {
  days = new Array("Sunday","Monday","Tuesday","Wednesday");
  trace(days.toString());
}

// outputs "Sunday,Monday,Tuesday,Wednesday" to the debug window