EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Length (Arguments.length Property); Array

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Array 247
See also
callee (arguments.callee property)
length (arguments.length property)
public length : Number
The number of arguments passed to the function. This may be more or less than the function
declares.
Availability: ActionScript 1.0; Flash Lite 2.0
Array
Object
|
+-Array
public dynamic class Array
extends Object
The Array class lets you access and manipulate indexed arrays. An indexed array is an object
whose properties are identified by a number representing their position in the array. This
number is referred to as the index. All indexed arrays are zero-based, which means that the first
element in the array is [0], the second element is [1], and so on. To create an Array object, you
use the constructor new
Array(). To access the elements of an array, you use the array access
(
[]) operator.
You can store a wide variety of data types in an array element, including numbers, strings,
objects, and even other arrays. You can create a multidimensional array by creating an indexed
array and assigning to each of its elements a different indexed array. Such an array is
considered multidimensional because it can be used to represent data in a table.
Array assignment is by reference rather than by value: when you assign one array variable to
another array variable, both refer to the same array:
var oneArray:Array = new Array("a", "b", "c");
var twoArray:Array = oneArray; // Both array variables refer to the same
array.
twoArray[0] = "z";
trace(oneArray); // Output: z,b,c.

Table of Contents

Related product manuals