1 import flash.utils.ByteArray; 2 var a:Array=["a","b"]; 3 var b:Array=[]; 4 b=clone(a); 5 trace(b); 6 7 function clone(source:Object):* 8 { 9 var myBA:ByteArray = new ByteArray(); 10 myBA.writeObject(source); 11 myBA.position = 0; 12 return(myBA.readObject()); 13 }