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.

Availability: <strong>ActionScript</strong> 1.0; Flash Player 5 - Became a native object in Flash Player 6,<br />

which improved performance significantly.<br />

Example<br />

In the following example, my_array contains four months of the year:<br />

var my_array:Array = new Array();<br />

my_array[0] = "January";<br />

my_array[1] = "February";<br />

my_array[2] = "March";<br />

my_array[3] = "April";<br />

Property summary<br />

Modifiers Property Description<br />

static CASEINSENSITIVE:Numb<br />

er<br />

Properties inherited from class Object<br />

Constructor summary<br />

In the sorting methods, this constant specifies<br />

case-insensitive sorting.<br />

static DESCENDING:Number In the sorting methods, this constant specifies<br />

descending sort order.<br />

length:Number A non-negative integer specifying the number of<br />

elements in the array.<br />

static NUMERIC:Number In the sorting methods, this constant specifies<br />

numeric (instead of character-string) sorting.<br />

static RETURNINDEXEDARRAY:N<br />

umber<br />

Specifies that a sort returns an indexed array as a<br />

result of calling the sort() or sortOn() method.<br />

static UNIQUESORT:Number In the sorting methods, this constant specifies the<br />

unique sorting requirement.<br />

constructor (Object.constructor property), __proto__ (Object.__proto__<br />

property), prototype (Object.prototype property), __resolve<br />

(Object.__resolve property)<br />

Signature Description<br />

Array([value:Object Lets you create an array.<br />

])<br />

Array 251

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

Saved successfully!

Ooh no, something went wrong!