AS3 Playing a movieclip on a keyframe then repeating on the next

Hey there, so I created three seperate movieclips on my main timeline and each one is on a seperate keyframe. I want to put in code so that it will play the first movieclip on keyframe1, then move to keyframe 2 and play that movie clip, ect. How do you code this and do you code on the main timeline or in each movieclip? Thanks!