package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var array:Array = new Array(); array.push("val 1", "val 2"); array[array.length] = "val 3"; trace(array); } } }