you have an error elsewhere. click file/publish settings/flash/ and tick permit debugging to locate the line(s) with errors.
I just get the same answer
1087: Syntax error: extra characters found after end of program.
It tells my where the error is but not what to do or what the extra characters are.
OK I seem to have found the answer to my questions.
I had applied the on (release) action to a keyframe and not to the button instance
for some reason that seemed to fix the looping issue too.
Sorry for the confusion. I am a Flash newbie
Thanks for you help