# Multiple Movies

**URL:** <https://forum.kirupa.com/t/multiple-movies/150713>\
**Category:** flash\
**Created:** [June 9, 2005, 6:40pm UTC](https://forum.kirupa.com/t/multiple-movies/150713 "2005-06-09T18:40:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![conradical](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/conradical/32/786_2.png) [@conradical](https://forum.kirupa.com/u/conradical)\
**Post date:** [June 9, 2005, 6:40pm UTC](https://forum.kirupa.com/t/multiple-movies/150713/1 "2005-06-09T18:40:24Z")

</div>

Hey,  
I have a main movie with a MC “contents” in which i load a movie “movie1.swf”

After movie1 plays movie 2 has to start immediately and likewise for movie 3 which means the movies 2 and 3 have to be preloaded before the last frame of movies 1 & 2 respectively.

Can someone tell me how i can do this? I have a preloader for all the movies and the script is below.

FRAME 1

```auto
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
	this.gotoAndPlay(3);
}

```

FRAME 2

```auto
this.gotoAndPlay(1);

```

On the last frames of movie 1, 2 and 3 i have \_root.contents.loadMovie(“moviename.swf”);

Any help with this will be appreciated!
