Frame Script , Movieclip Script and their usage

What is the basic difference between Frame Script and Movie
clip Script and how to decide which code should be in Frame script and which piece should go in MovieClip script.