Flash doesn't provide you with this function so Flashkit has. This code will plug into any actionscript that may require this function. By Flash Junkie
This is a tutorial demonstrating how to use math to simulate the movement of a pendulum, until it stops, varying dynamically its parameters. By Michele Microon