Collision detection

How do i make it so that when 1 movieclip collides with another, it will go to a different frame?