Code placement

I’ve heard a lot of people say that the best way to code your game is to put all the code on the actual frames of the root timeline, as opposed to putting code on movie clips. Is this true? What is it about coding movie clips that is frowned upon?