Help for looping movie to a definite frame

Hi to all,

I’m Andrea from Italy and I’m a beginner with Flash, I use CS3.

I’m doing for my website some animated pictures in flash (like banners):
when the movie end I want it to loop, but not from the first frame to the last one. I want it to loop from a definite frame (for example “25”) to the end.

Could anyone help me suggesting the Actionscript code to use?

I tried in this way, but it doesn’t work and give me errors:

On the last frame: stop();

Selecting the object: gotoAndPlay(25);

Thank you very much I hope I’ll learn a lot here!