An array is a collection of elements. These elements can be accessed by indexing starting from 0.
An array is a collection of elements. These elements can be accessed by indexing starting from 0.
var myArray:Array = {"RoseIndia", 10, new MyClass()}; |
var myArray:Array = new Array(); myArray[0] = "RoseIndia"; myArray[1] = 10; myArray[2] = new MyClass(); |
//push() adds the element in the last of the arraymy // pop()
removes the last element from the array. |