Weird hittest

I have an rpg type game, and when you walk into and object the guy stops/ cant move. Now the guy is inside a house, and in the doorway is a rectangle with an instance name “door” with an alpha level of 0. When the character collides with “door” I want the movie to gotoAndPlay on frame 1 of scene 2. Can some please provide me with the actionscript so I can equip my guy with it.

Cheers :nose:

[AS]onEnterFrame =function(){
gotoAndPlay(“Scene 2”,1);

still doesnt work. I just whipped this up then: