# Is this possible?

**URL:** https://forum.kirupa.com/t/is-this-possible/65596
**Category:** Uncategorized
**Created:** [September 28, 2004, 2:47am UTC](https://forum.kirupa.com/t/is-this-possible/65596 "2004-09-28T02:47:58Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![x\_naga](https://avatars.discourse-cdn.com/v4/letter/x/94ad74/32.png) [@x\_naga](https://forum.kirupa.com/u/x_naga)
#### Post date: [September 28, 2004, 2:47am UTC](https://forum.kirupa.com/t/is-this-possible/65596/1 "2004-09-28T02:47:58Z")

</div>

Is it possible to load any random file in a folder?

Like any random .jpg?

---

<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 28, 2004, 3:29am UTC](https://forum.kirupa.com/t/is-this-possible/65596/2 "2004-09-28T03:29:40Z")

</div>

Depends, if you want flash to read everything in a folder then you can use php, or asp. If you want to manually type what jpeg’s you want loaded you can use xml, or again, asp, php, or even just flash.

Best bet is to search the forums, and the tutorial section to get a better idea of what exactly you want to do.

---

<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 28, 2004, 5:11pm UTC](https://forum.kirupa.com/t/is-this-possible/65596/3 "2004-09-28T17:11:56Z")

</div>

you could just put all the file names in an array and have flash pick them out at random

---

<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 28, 2004, 8:27pm UTC](https://forum.kirupa.com/t/is-this-possible/65596/4 "2004-09-28T20:27:59Z")

</div>

I have achieved it using PHP.

I simply used PHP to index the folder, then I wrote the data into an xml file in xml format. Then I used Flash to load and parse the xml file 🙂

---

<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 28, 2004, 8:33pm UTC](https://forum.kirupa.com/t/is-this-possible/65596/5 "2004-09-28T20:33:51Z")

</div>

Nice, probably the best way to do it. Only thing with that is you have to be careful that only the images you want are in that folder 😉
