Simple hit test glitch?

I have an mc instance called “char” (the movieclip in library was renamed the same thing to help) and an mc called “enemy” … Whent he two of them meet it should gotAndStop a frame called “theend” but doesnt. (I tried it in no quotes, single quotes and double qotes).

All I want this thing to do is go to a new frame when it gets touched by ant instance of enemy. Flash detects the collision but won’t actually perform the goto option. Can anyone help? I’m pretty sure this is just a simple error.

I did try it without the collision detected text and it didnt’ work… which is why I added it so I could test if flash was detecting a collision or not. And it does. But it won’t GOTO! :slight_smile: So if anyone has some advice for me… htis is the entire script that appears on the char movie clip object. I would deeply appreciate assistance.

onClipEvent (enterFrame) {
if (_root.char, hitTest(_root.enemy)) {
_root.text = “Collision Detected”;
gotoAndStop(theend);

} else {
     (_root.text = "No Collision");
}

}
onClipEvent(enterFrame)
{
//codes for movement
if(Key.isDown(Key.DOWN))
{
_Y+=5;
}
if(Key.isDown(Key.UP))
{
_y-=5;
}
}