# Loading 2 random movies at once

**URL:** <https://forum.kirupa.com/t/loading-2-random-movies-at-once/131905>\
**Category:** Uncategorized\
**Created:** [December 21, 2004, 4:09am UTC](https://forum.kirupa.com/t/loading-2-random-movies-at-once/131905 "2004-12-21T04:09:36Z")\
**Posts on this page:** 1\
**Page:** 1

<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:** [December 21, 2004, 4:09am UTC](https://forum.kirupa.com/t/loading-2-random-movies-at-once/131905/1 "2004-12-21T04:09:36Z")

</div>

Is there a way to load 2 or more random movie clips? I can get one random movie to load but am having trouble getting the 2nd movieclip to load. The code Im using is below.

```auto
filename = ["1.swf", "2.swf", "3.swf", "4.swf", "5.swf", "6.swf", "7.swf", "8.swf", "9.swf", "10.swf", "11.swf"];
path = "buttons/";
i = filename.length;
k = Math.floor(Math.random()*i);
loadMovie(path+filename[k], movieTarget);

filename = ["1.swf", "2.swf", "3.swf", "4.swf", "5.swf", "6.swf", "7.swf", "8.swf", "9.swf", "10.swf", "11.swf"];
path = "buttons/";
h = filename.length;
j = Math.floor(Math.random()*h);
loadMovie(path+filename[j], movieTarget2);

```
