Articles about cloning’

Feb 19, 2009

Easy deep clone method made easier

Posted by Dennis in ActionScript, Flash, Flex 7 comments

In a previous post I talked about an easy deep cloning method I found and which I tweaked a little.
While I was crammed in the tube yesterday (sometimes the best ideas are born in the underground) I came up with an idea to simplify and generalise this even further. The problem with the current method [...]


Feb 10, 2009

Easy deep clone method for ActionScript 3.0

Posted by Dennis in ActionScript, Flash, Flex 5 comments

UPDATE: I’ve made this made more flexible. Read this.
I stumbled upon this method via the ActionScript 3 Design patterns blog. This method is commonly used in Java to make a deep copy of an object. I tried the example but couldn’t get it to work. When I casted bytes.readObject() it always returned null. I found [...]