How do i use hit test to go to next scene?

[font=Courier New]At the start of my game you have to fight monsters, how do i make him attack the baddies?[/font]
[font=Courier New]and second how to i walk into a cave and go to a next scene or frame? my current script is[/font]

          if (_root.door.hitTest(_root.player)) {
             gotoAndPlay("cave", 1);

any suggestions?