MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 274

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

Method summary for the Array class
Method
Array.concat()
Array.join()
Array.pop()
Array.push()
Array.reverse()
Array.shift()
Array.slice()
Array.sort()
Array.sortOn()
Array.splice()
Array.toString()
Array.unshift()
Property summary for the Array class
Property
Array.length
Constructor for the Array class
Availability
Flash Player 5.
Usage
new Array()
new Array(length)
new Array(element0, element1, element2,...elementN)
Parameters
An integer specifying the number of elements in the array. In the case of noncontiguous
length
elements, the
length
element0...elementN
strings, objects, or other arrays. The first element in an array always has an index or position of 0.
Returns
Nothing.
274
Chapter 12: ActionScript Dictionary
Description
Concatenates the parameters and returns them as a new array.
Joins all elements of an array into a string.
Removes the last element of an array and returns its value.
Adds one or more elements to the end of an array and returns the array's new
length.
Reverses the direction of an array.
Removes the first element from an array and returns its value.
Extracts a section of an array and returns it as a new array.
Sorts an array in place.
Sorts an array based on a field in the array.
Adds and removes elements from an array.
Returns a string value representing the elements in the Array object.
Adds one or more elements to the beginning of an array and returns the array's
new length.
Description
A nonzero-based integer specifying the number of elements in the array.
parameter specifies the index number of the last element in the array plus 1.
A list of two or more arbitrary values. The values can be numbers,

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Table of Contents