Help with b2ContactListener

I'm working on a simulation where you can grab an object and throw it around, and what I want to achieve is or the object to deform when it hits walls etc. So from a bit of searching around it looks like I need to use b2ContactListener to achieve this.

Can anyone give me a quick rundown of how to do this? Is there a tutorial or an example in AS3 somewhere?

Thanks in advance!

Original thread: https://box2d.org/forum/viewtopic.php?t=858