Your link doesn't work.
What's so wrong about using a physics engine to simulate (*gasp*) physics?
Your code appears to be AS2, but you posted in the AS3 forum.