February 2009 Archives

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 [...]


Feb 5, 2009

Debug Flash/Flex & Air with De MonsterDebugger

Posted by Dennis in ActionScript, Flash, Flex 5 comments

I highly recommend this debugger. It is an AIR application that has many useful features and will make your life much easier. Some of those features are:

detailed traces (trace strings and objects, which you can expand)
edit properties at runtime
method testing
a tree structure with which you can walk through the application

On top of that, it is [...]


Feb 3, 2009

OutOfMemory error:PermGen Space with Eclipse/Flex Builder Plugin/Ant

Posted by Dennis in Flex 5 comments

This gave me a headache! This error occurred when I was trying to compile 38 separate ActionScript classes into SWF files:
OutOfMemory error:PermGen Space
If you search for this error you’ll find many blogposts written by utterly frustrated Java developers. It appears to be a dreaded error that is raised when deploying war files to web or [...]