My won't it gotoandplay?

Hi there, I’m a newbie, nice site, nice tutorials. I’m also a bit new to flash and got a problem with a gotoAndPlay() command that isn’t working properly. I’m sure an experienced flasher will solve it easily-

I just written my first game and just cleaning things up, adding a highscore table and stuff. The main swf has 3 frames - the first shows the title screen, the second the game and the third an endgame screen. You click play from the titles to got to next frame and play the game - its in AS 2.0 and _root.onEnterFramev function is used to start the game. When you run out of lives, a function is called that moves main swf to the next frame, the endgame screen. You can restart a new game or go to titles. The restart button works fine but the titles does not. It flicks back to first frame very briefly then back to where it started. Why is this? Both buttons are virtually identical except going to different frames. Is it to do with leftover resources from the game or something more obvious? Is there a way to debug things like this in flashmx? Can anybody help?