Controlling flash video thru actionscript?

How do I begin with such a thing?
I have no idea where to look for how to control a (progressive) imported flv through actionscripting.

I would like to be able to pause the video at the end etc, things like that.

Thanks in advance.