# Loading more than one random clip

**URL:** <https://forum.kirupa.com/t/loading-more-than-one-random-clip/63659>\
**Category:** Uncategorized\
**Created:** [September 8, 2004, 10:09pm UTC](https://forum.kirupa.com/t/loading-more-than-one-random-clip/63659 "2004-09-08T22:09:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![azithinkibe](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@azithinkibe](https://forum.kirupa.com/u/azithinkibe)\
**Post date:** [September 8, 2004, 10:09pm UTC](https://forum.kirupa.com/t/loading-more-than-one-random-clip/63659/1 "2004-09-08T22:09:58Z")

</div>

Heres the deal. I’ve found tutorials that show how to randomly load from a selection of movie clips. My problem is, I have two clips that load on top of each other. Ones a blurred image, the other is a clear, and when you move a mask over the image, it goes from blurry to clear. Right?

But I want a different image to load everytime. Problem is that I need both the random blurry and clear pictures to be the same! No point moving your mouse over a blurred picture of a mountain only to find a clear river underneath, right?

---

<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:** [September 9, 2004, 12:26am UTC](https://forum.kirupa.com/t/loading-more-than-one-random-clip/63659/2 "2004-09-09T00:26:00Z")

</div>

You could write a condition that examines the random image before it is loaded, if it equals image13.jpg, then image13b.jpg loads also.

---

<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:** [September 9, 2004, 2:37am UTC](https://forum.kirupa.com/t/loading-more-than-one-random-clip/63659/3 "2004-09-09T02:37:18Z")

</div>

I’m completely new to flash; any chance you could give me an example of how to do that?

I’ll see if I can figure it out myself until then…

---

<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:** [September 9, 2004, 6:50am UTC](https://forum.kirupa.com/t/loading-more-than-one-random-clip/63659/4 "2004-09-09T06:50:18Z")

</div>

Something like

```auto
//pictures have names like image1.jpg/image1b.jpg, image2.jpg/image2b.jpg,..etc
var nroffPic = 5;
var randomPic = Math.ceil(Math.random()*nroffPic);
blurredContainer.loadMovie("image"+randomPic+"b.jpg");
clearContainer.loadMovie("image"+randomPic+".jpg");

```

?

scotty(-:
