# Need an event listener for when a movie clip is finished playing

**URL:** <https://forum.kirupa.com/t/need-an-event-listener-for-when-a-movie-clip-is-finished-playing/304055>\
**Category:** flash\
**Created:** [January 31, 2010, 9:48pm UTC](https://forum.kirupa.com/t/need-an-event-listener-for-when-a-movie-clip-is-finished-playing/304055 "2010-01-31T21:48:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Agold](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@Agold](https://forum.kirupa.com/u/Agold)\
**Post date:** [January 31, 2010, 9:48pm UTC](https://forum.kirupa.com/t/need-an-event-listener-for-when-a-movie-clip-is-finished-playing/304055/1 "2010-01-31T21:48:36Z")

</div>

This is a simple enough question. I have a slideshow that loads an image via XML, then adds said image to a placeholder inside a movie clip, and then proceeds to play a little sliding animation via the movie clip. What I need to do is figure out how to get an event that the movie clip is finished and sitting back on frame 1 so that I can run a “nextImage” function that loads the next image from the XML. I’m pretty new to actionscript, and I can’t for the life of me figure out how to properly handle what should be a simple event. If I put a simple listener at the end of the movieclip, it doesn’t talk to the main script at all?

How would you guys go about this? I don’t want to use a timer…
