# Loading Dynamic Images

**URL:** https://forum.kirupa.com/t/loading-dynamic-images/9248
**Category:** flash
**Created:** [December 8, 2002, 5:54am UTC](https://forum.kirupa.com/t/loading-dynamic-images/9248 "2002-12-08T05:54:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Yeni](https://avatars.discourse-cdn.com/v4/letter/y/65b543/32.png) [@Yeni](https://forum.kirupa.com/u/Yeni)
#### Post date: [December 8, 2002, 5:54am UTC](https://forum.kirupa.com/t/loading-dynamic-images/9248/1 "2002-12-08T05:54:05Z")

</div>

Hi all,

i refer to this tutorial:  
[http://www.kirupa.com/developer/mx/photogallery.asp](http://www.kirupa.com/developer/mx/photogallery.asp)

I saw the codes and i was wondering if it was possible if i load ALL images in the directory without declaring this line:

quote:  
this.pArray = [“image0.jpg”, “image1.jpg”, “image2.jpg”, “image3.jpg”, “image4.jpg”, “image5.jpg”, “image6.jpg”, “image7.jpg”, “image8.jpg”, “image9.jpg”];

thank You!  
HuGx,  
Yen

---

<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 8, 2002, 7:03am UTC](https://forum.kirupa.com/t/loading-dynamic-images/9248/2 "2002-12-08T07:03:57Z")

</div>

First: No you can not… the script relies on pArray to run because it sorts the images and lets the script know when to end and when to start.

If what you are asking is every possible (not sure), it will require a different script.

Second: Please don’t cross post. This causes a lot of confusion for people trying to help.

---

<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 8, 2002, 9:45am UTC](https://forum.kirupa.com/t/loading-dynamic-images/9248/3 "2002-12-08T09:45:25Z")

</div>

It requires a different script? Can u teach me how?

I’m so sorry for the posting in both forums… i will not do it again.

🙂  
ThankX!  
Yen

---

<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 8, 2002, 2:18pm UTC](https://forum.kirupa.com/t/loading-dynamic-images/9248/4 "2002-12-08T14:18:51Z")

</div>

Dynamic loading would be better than attaching mcs, i assume.

---

<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 8, 2002, 11:39pm UTC](https://forum.kirupa.com/t/loading-dynamic-images/9248/5 "2002-12-08T23:39:27Z")

</div>

The image gallery tutorial does dynamically load images h88 🙂

I don’t know of another script to do that kind of thing. sbeener is a pro at that kind of thing.

Yay… new smilies added… Merry Christmas \<:}
