Homing Missle
Using some trigonometry and spring mathematics, a missle movieclip attempts to track or home in on and destry a smaller space ship which follows the mouse position. With the use of the spring code (applying properties of momentum), you can actually get the missle to orbit the spaceship indefinitely.
advertisement