Changing frames (AS 2.0)

I’m trying to make a platforming game but I ran into this problem. I’m trying to change the frame when the Main character he hits certain objects (like a door). However the hitTest function doesn’t seem to work. I’m not very experienced with action scripting.

On my Character movieclip,
if (this.hitTest(_root.door)){
gotoAndStop(2)
}