Need Help running movie clips in order

Hi, i neeed help with this:
I have 2 movie clips A and B.
I want to run first the movie clip A in the main timeline and when A is finished i want to run B.
How can i do it?