# Random loading images

**URL:** <https://forum.kirupa.com/t/random-loading-images/136424>\
**Category:** Uncategorized\
**Created:** [February 4, 2005, 6:20pm UTC](https://forum.kirupa.com/t/random-loading-images/136424 "2005-02-04T18:20:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tahnaroth](https://avatars.discourse-cdn.com/v4/letter/t/838e76/32.png) [@Tahnaroth](https://forum.kirupa.com/u/Tahnaroth)\
**Post date:** [February 4, 2005, 6:20pm UTC](https://forum.kirupa.com/t/random-loading-images/136424/1 "2005-02-04T18:20:17Z")

</div>

I have done a random loading file using this tutorial:  
[http://www.kirupa.com/developer/mx/loadingrandombackground.htm](http://www.kirupa.com/developer/mx/loadingrandombackground.htm)  
And really like to know if there is a way to put 2 different simultaneous  
random loading images in a single flash file using this code:

```auto
choice = Math.round(Math.random()*5);
switch (choice) {
case 0 :
location.loadMovie("image0.swf");
break;
case 1 :
location.loadMovie("image1.swf");
break;
case 2 :
location.loadMovie("image2.swf");
break;
case 3 :
location.loadMovie("image3.swf");
break;
case 4 :
location.loadMovie("image4.swf");
break;
case 5 :
location.loadMovie("image5.swf");
break;
}

```

Tried many times without luck, need some help!
