Bungee cord effect

Hey I was wondering how this effect could be done using actionscript… Let’s say that an object was placed on a string and pulled downward and let go, then the string would increase in length (elasticity) and when let go it would shoot the object upwards, and the string itself would seem to crumple up a little. How in the heck can this be done? Thanks!