Thnaks Tracy, but it actually creates a new object into the object that I want to copy to. I need to keep the original reference of this object and then get the contents from other objects a copy them.
Greetings. --- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > I found an example, this was posted by Bjorn Schultheiss. > > > > function clone(source:Object):*{ > var myBA:ByteArray = new ByteArray(); > myBA.writeObject(source); > myBA.position = 0; > return(myBA.readObject()); > } > > > > Tracy > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Daniel > Sent: Thursday, December 21, 2006 1:14 PM > To: [email protected] > Subject: [flexcoders] Copy Object > > > > Hi all! > > Is there a way to copy the content of an object into another object > without losing the reference of the second one? > > Thx! >

