flubber, the code needs to read:

firstFrame: play(); timesBeenPlayed=0;
lastFrame: if(timesBeenPlayed<1){ gotoAndPlay[2];
timesBeenPlayed++; }

otherwise, the script will return the movie to frame 1 and keep resetting timesBeenPlayed to 0.

Endless loop!

Thanks for the script though, it saved my movie!