# Controlling how long a movie stays on

**URL:** <https://forum.kirupa.com/t/controlling-how-long-a-movie-stays-on/216858>\
**Category:** Uncategorized\
**Created:** [February 21, 2007, 4:04am UTC](https://forum.kirupa.com/t/controlling-how-long-a-movie-stays-on/216858 "2007-02-21T04:04:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![samsoner](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@samsoner](https://forum.kirupa.com/u/samsoner)\
**Post date:** [February 21, 2007, 4:04am UTC](https://forum.kirupa.com/t/controlling-how-long-a-movie-stays-on/216858/1 "2007-02-21T04:04:33Z")

</div>

Hi, I am going to load an external photogallery on my homepage. The photogallery will be one of a succession of animated swfs that will automatically load, and then unload on the homepage. The purpose of the animated swfs is for advertising purposes only. A good example can be seen at the radio station 106.9 Free FM or [comcast.net](http://comcast.net)

However, the photo gallery is different. I will automatically load it after a few animated ads, but then stop because I have buttons that will load up each jpg. What I’d like to do is create a close button that has its own seperate actionscript code and allows the visitor to close the loaded movie. I did this before in Flash 5 but forgot the method in Flash MX.

Is it on Release, frame “#” unload movie (“name of the movie”)?

Thanks for the assistance
