# Dynamic Photo Gallery

**URL:** <https://forum.kirupa.com/t/dynamic-photo-gallery/27771>\
**Category:** flash\
**Created:** [August 6, 2003, 2:08pm UTC](https://forum.kirupa.com/t/dynamic-photo-gallery/27771 "2003-08-06T14:08:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JFev](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@JFev](https://forum.kirupa.com/u/JFev)\
**Post date:** [August 6, 2003, 2:08pm UTC](https://forum.kirupa.com/t/dynamic-photo-gallery/27771/1 "2003-08-06T14:08:25Z")

</div>

I’m trying to make a photo gallery that loads the pics in as swf’s, and was wondering if there was any way for flash to detect the number of files that are in a particular folder on website (also the names of those files). Does anyone have any idea’s?

---

<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 2, 2003, 5:25pm UTC](https://forum.kirupa.com/t/dynamic-photo-gallery/27771/2 "2003-09-02T17:25:30Z")

</div>

i noticed that your post is very old  
.  
maibe you are complicating too much for a simple photo gallery.  
advice:  
have the main to load the external one each time with raspactive data. by clicking thumbnails (buttons)

is much easier…  
good luck with site:P

---

<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 2, 2003, 5:39pm UTC](https://forum.kirupa.com/t/dynamic-photo-gallery/27771/3 "2003-09-02T17:39:03Z")

</div>

> any way for flash to detect the number of files that are in a particular folder on website (also the names of those files)

no can do - php/+database might do it but not flash, no sir.  
Try using simple files names such as image001.jpg so you only have to change the

```auto

getUrl("_blank","image"+variable+".jpg") //*

```

\*-\> actually variable would have to be a string because if variable = 1 then you’d have image1.jpg and you want image001.jpg, but nevermind

as for stopping when their are no more imges I think I saw somewhere (might be a flashurban legend) that if you load the pic in a container and that the container width doesn’t change, then you have no more pic…

but what i’d do is take a variable from a text file (easier to upload than the whole swf) dynamically, and it would have a variable such as thelastimagenumber=565 or something like that - get what I mean ?

---

<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 2, 2003, 9:11pm UTC](https://forum.kirupa.com/t/dynamic-photo-gallery/27771/4 "2003-09-02T21:11:47Z")

</div>

Thanks a lot. I had a feeling that that was the only way.
