Posted By

allnatural on 03/17/09


Tagged

object copy


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

damarev


Dynamically Copy Object's


 / Published in: ActionScript 3
 

URL: http://blog.tyleregeto.com/

Use this to dynamically copy objects.

  1. my copyFunction(value:Object):Object{
  2. var buffer:ByteArray = new ByteArray();
  3. buffer.writeObject(value);
  4. buffer.position = 0;
  5. var result:Object = buffer.readObject();
  6. return result;
  7. }

Report this snippet  

You need to login to post a comment.