package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var x:Array = [1, 2, 3]; var y:Array = [[5, 6], [7, 8]]; var z:Array = x.concat(y); // Result is [1, 2, 3, [5, 6], [7, 8]]. trace(z); //1,2,3,5,6,7,8
} } }
|