# Monitoring the end of a movie clip

**URL:** <https://forum.kirupa.com/t/monitoring-the-end-of-a-movie-clip/185387>\
**Category:** flash\
**Created:** [April 12, 2006, 11:02pm UTC](https://forum.kirupa.com/t/monitoring-the-end-of-a-movie-clip/185387 "2006-04-12T23:02:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ice987](https://avatars.discourse-cdn.com/v4/letter/i/779978/32.png) [@ice987](https://forum.kirupa.com/u/ice987)\
**Post date:** [April 12, 2006, 11:02pm UTC](https://forum.kirupa.com/t/monitoring-the-end-of-a-movie-clip/185387/1 "2006-04-12T23:02:45Z")

</div>

I have a .fla which loads 2 swfs. Each swf plays an animation.I want the 2nd swf to play when the first is finished. What is the best way to monitor the first clip for when it ends (if this is possible). Would the onUnload() handler help?

---

<div class="post-metadata">

**Author:** ![lunatic](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lunatic](https://forum.kirupa.com/u/lunatic)\
**Post date:** [April 12, 2006, 11:11pm UTC](https://forum.kirupa.com/t/monitoring-the-end-of-a-movie-clip/185387/2 "2006-04-12T23:11:39Z")

</div>

Can’t you just put code to play the 2nd swf on the last frame of the 1st swf?

:hr:
