# Help for looping movie to a definite frame

**URL:** <https://forum.kirupa.com/t/help-for-looping-movie-to-a-definite-frame/251631>\
**Category:** flash\
**Created:** [February 11, 2008, 9:48am UTC](https://forum.kirupa.com/t/help-for-looping-movie-to-a-definite-frame/251631 "2008-02-11T09:48:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MeteoPoint](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@MeteoPoint](https://forum.kirupa.com/u/MeteoPoint)\
**Post date:** [February 11, 2008, 9:48am UTC](https://forum.kirupa.com/t/help-for-looping-movie-to-a-definite-frame/251631/1 "2008-02-11T09:48:47Z")

</div>

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!
