Ever wanted to make a true-to-life spring in flash? So did I. So I did.
You can see my first attempt here (use the mouse). If you have a look at it, it's kind of obvious that it's not acting too realistically. When you approach the object on the spring, the speed it moves away from you doesn't increase much - it's going very slowly, in fact. Also, it is prone to stretch a lot when you move your mouse away.
That got me thinking - how do springs work in real life? The more they are compressed or stretched, the harder it gets to compress or stretch them. As such, I made the force applied proportional to the distance from the mouse that the object is. I then chucked the whole thing in a class, and *tah dah*, you've got a fancy and Realistic Spring Effect.
So after 2 days of experimenting I've finally gotten what I wanted.
Randomini