Hi HP... I think that's what ObjectUtil.copy does under the bonnet so I'm
guessing it will also strip the Class information from the original objects
in serialize/ deserialize process.

Cheers,
Nick



On 16 February 2010 22:34, hpatino.rm <[email protected]> wrote:

>
>
> From Programming ActionScript 3.0 (page 157)
>
> Have you tried this:
>
> import flash.utils.ByteArray;
>
> function clone(source:Object):*
> {
> var myBA:ByteArray = new ByteArray();
> myBA.writeObject(source);
> myBA.position = 0;
> return(myBA.readObject());
> }
>
> HP
>
>

Reply via email to