03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Modifiers Signature Description<br />

Methods inherited from class Object<br />

Array constructor<br />

public Array([value:Object])<br />

Lets you create an array. You can use the constructor to create different types of arrays: an<br />

empty array, an array with a specific length but whose elements have undefined values, or an<br />

array whose elements have specific values.<br />

Usage 1: If you don't specify any parameters, an array with a length of 0 is created.<br />

Usage 2: If you specify only a length, an array is created with length number of elements.<br />

The value of each element is set to undefined.<br />

Usage 3: If you use the element parameters to specify values, an array is created with specific<br />

values.<br />

Parameters<br />

value:Object [optional] - Either:<br />

■ An integer that specifies the number of elements in the array.<br />

■ A list of two or more arbitrary values. The values can be of type Boolean, Number, String,<br />

Object, or Array. The first element in an array always has an index or position of 0.<br />

Note: If only a single numeric parameter is passed to the Array constructor, it is assumed to be<br />

length <strong>and</strong> it is converted to an integer by using the Integer() function.<br />

234 ActionScript classes<br />

splice(startIndex:Nu<br />

mber,<br />

[deleteCount:Number]<br />

, [value:Object]) :<br />

Array<br />

Adds elements to <strong>and</strong> removes elements from an<br />

array.<br />

toString() : String Returns a string value representing the elements in<br />

the specified Array object.<br />

unshift(value:Object<br />

) : Number<br />

Adds one or more elements to the beginning of an<br />

array <strong>and</strong> returns the new length of the array.<br />

addProperty (Object.addProperty method), hasOwnProperty<br />

(Object.hasOwnProperty method), isPropertyEnumerable<br />

(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf<br />

method), registerClass (Object.registerClass method), toString<br />

(Object.toString method), unwatch (Object.unwatch method), valueOf<br />

(Object.valueOf method), watch (Object.watch method)

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

Saved successfully!

Ooh no, something went wrong!