Making a MC a button

is there code for “movie clip” that u can have like on roll over and will movie the movie clip to ex: frame 2, or rollout go to frame 3… and onclick does whatever…? so its like a more advanced button so u can have like frame 1,2,3 animate,ect… to make animations for a rollout or rollover easier without making another movie clip inside of a normal “button”