How does 1 save copy of an array in AS3 such that changing an element of the copy does not affect the original array?
I have an array of Sprites. I tired using splice(0), concat and even copying the array element by element. But everytime I change a propertly in an element of the copy, the original array gets affected. Why does this happen?
var arrayOfDots2:Array = arrayOfDots1.slice(0);
arrayOfDots*.x = dim + gap + arrayOfDots1*.x’
Here, why does the x of arrayOfDots1 get changed. How can I prevent this?