AS3 arrays
AS3 arrays
Out of context: Reply #5
- Started
- Last post
- 8 Responses
- acescence0
if you want a unique array AND a copy of all the objects the array contains (known as a deep copy) you need to use ByteArray:
function clone(source:Object):* {
var copier:ByteArray = new ByteArray();
copier.writeObject(source);
copier.position = 0;
return(copier.readObject());
}