Help needed - hit test door based on coins collected

Hi there guys, I’m fairly new to flash. I’m making a game for my end of year project. It is a simple platformer, one that I have had several problems with, but it seems to work fine. Anyhow, one of the aspects involves you collecting a series of coins. In one of my rooms, I want there to be a hit test so if they player connects with the item and has 5 or more coins, then they go to and play a new frame.

I have seen how to do it just as go to and play, but I need it as part of a hit test. The code I’m using doesn’t want to work, keep getting syntax error. Having a tough time finding help online too. Any help would be majorly appreciated.

The code I am using is as follows -

if ( score == 5 ) {
_root.doormetal.hitTest(_x, _y, true) {
_root.save_y_speed = yspeed;
_root.save_y_position = _y;
_root.throughdoor = 1;
_root.gotoAndPlay(“screen47edit”);

}
}

It is always the second line that seems to bring up the syntax error, but I have no clue why :S