# Loading multiple movies

**URL:** <https://forum.kirupa.com/t/loading-multiple-movies/14248>\
**Category:** flash\
**Created:** [February 24, 2003, 3:12am UTC](https://forum.kirupa.com/t/loading-multiple-movies/14248 "2003-02-24T03:12:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ache75](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@ache75](https://forum.kirupa.com/u/ache75)\
**Post date:** [February 24, 2003, 3:12am UTC](https://forum.kirupa.com/t/loading-multiple-movies/14248/1 "2003-02-24T03:12:29Z")

</div>

Here’s the situation:  
I want to load multiple movies. I have 5 thumbnails. When you click on one of the thumbnails it loads a movie. When you click on another thumbnail, it unloads the movie previously loaded and loads the new movie. That’s pretty much it. It sounds so easy, but I’m hitting a tough spot trying to figure it out. Can anybody PLEASE help me?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 24, 2003, 3:49am UTC](https://forum.kirupa.com/t/loading-multiple-movies/14248/2 "2003-02-24T03:49:35Z")

</div>

Did you check this out yet?

I just used it on a new website I’m making…it works well.

[http://www.kirupa.com/developer/mx/full\_site.htm](http://www.kirupa.com/developer/mx/full_site.htm)

(-:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 24, 2003, 3:58am UTC](https://forum.kirupa.com/t/loading-multiple-movies/14248/3 "2003-02-24T03:58:58Z")

</div>

if you want to load and unload each swf in the same movieclip …  
just use **loadMovie()**. the previous movie will be replaced with the new one

```auto

thumbnail1.onRelease = function() {
	movieclipContainerInstanceName.loadMovie("thumbnail1.swf");
}
thumbnail2.onRelease = function() {
	movieclipContainerInstanceName.loadMovie("thumbnail2.swf");
}
// and so on ..

```

if you want to have some transition between each swf …  
i guess the easiest way would be using **callbacks**  
[Tricks of the Trade](http://www.kirupaforum.com/showthread.php?s=&threadid=14268&highlight=callbacks) [size=1]it’s in the first post =)[/size]
