How do you add two arrays together in AS3? I've run into this problem more often than I can remember the solution to it. So I've tried:
var myArray:Array = array1 + array2;
How do you add two arrays together in AS3? I've run into this problem more often than I can remember the solution to it. So I've tried:
var myArray:Array = array1 + array2;
To add two arrays together use the concat method.
This method creates a new array from two separate arrays:
var propertiesStyles:Array = styles.concat(properties);
This method updates the array without making a copy:
styles.push.apply(this, properties);