Collision triggers "next scene"

how do I make it so when one mc runs into another the scene will change to the next one??

heres my code that doesn’t seem to be working

onClipEvent (enterFrame) {
if (this.hitTest(_root.characterf))
function() {nextScene();
}