Inverse Kinetimatics for as3

I’ve trying to create an animated puppet with a skeleton that i can “pose” in flash. After some research i found out that to accomplish my goal i had to use something called Inverse Kinematics.

I don’t really understand the math behind it that well, but i used this tutorial made for as2 to create my own IKMember class, pretty much just copying it but translated to as3. This is my first attempt at the simplest of skeleton puppets : a Snake

Here’s the source code (IKSnake.zip)