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();
}

try:

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

no dice. This is frustrating becuase its seems like a really simple problem but i cant get around it!

i think ive found the problem. The action script seems to be trying to tell the movie clip to go to the next scene inside of itself rather then the actual next scene in the entire movie.

I found this out becuase when I run one movie clip into the other, the one that contains the code stops.

this is the code:

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

Does someone know how to fix this?

Or, you could just name the first frame on the second scene [color=black][color=blue]“scene2”[/color], [/color]and set the coding so that instead of [color=darkslateblue]nextScene/color, is says [color=darkslateblue]_root[/color].[color=darkslateblue]gotoAndStop/color.

yo i wanna kno this too… when u find out tell me

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

that should work.

make sure ur instances are right