# Load movie

**URL:** <https://forum.kirupa.com/t/load-movie/150315>\
**Category:** Uncategorized\
**Created:** [June 6, 2005, 7:02pm UTC](https://forum.kirupa.com/t/load-movie/150315 "2005-06-06T19:02:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rlLife](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@rlLife](https://forum.kirupa.com/u/rlLife)\
**Post date:** [June 6, 2005, 7:02pm UTC](https://forum.kirupa.com/t/load-movie/150315/1 "2005-06-06T19:02:45Z")

</div>

here is the code that i am using for my button

```auto
on(release){
	loadMovieNum("CG/images/houseGroups/1fs.swf", i);
	i++;
}

```

and then on the first frame of the timeline i am puttin i=10

so every time the button is clicked it keeps loading on top of the last. this all works fine. my question is:

how do i unload all of the layers that have been loaded. it seems like it should be an unload i\< but that does not work or i might be doing it wrong
