|
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 Array.push("RoseIndia"); // pop() removes the last element from the array. myArray.pop(); |