Timeline Action Script

Can someone point me to an action script that can display a timeline on a flash movie. I don’t want to use a component. I would like to learn how to program this using actions script.

It need to be able to move the slider back and forth to move the flash movies timeline back and forth. It almost needs to look and act like the Timeline in the flash editor.

Thanks