Loop script problem

I was wondering if any one could give me a hand with this loop script that I have. It works in MX but not in MX2004.

if (loopCount++ == 1) stop();
else gotoAndPlay(Scene1);

Thanks