# Random First Image

**URL:** https://forum.kirupa.com/t/random-first-image/132376
**Category:** Uncategorized
**Created:** [December 28, 2004, 12:19am UTC](https://forum.kirupa.com/t/random-first-image/132376 "2004-12-28T00:19:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![S7en](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@S7en](https://forum.kirupa.com/u/S7en)
#### Post date: [December 28, 2004, 12:19am UTC](https://forum.kirupa.com/t/random-first-image/132376/1 "2004-12-28T00:19:24Z")

</div>

Hello KIRUPA,  
First of all, what a great site this is! I’m new here and have a question right away.

I was doing this tutorial: [http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm)

and succesfully completed it! Great tutorial. But now I was wondering. How do I make the first Image random?

First image function:

```auto

function firstImage() { 
if (loaded == filesize) { 
picture._alpha = 0; 
picture.loadMovie(image[0], 1); 
desc_txt.text = description[0]; 
picture_num(); 
} 
}

```

Thanks In Advance!
