# How to count the number of image files in a folder

**URL:** <https://forum.kirupa.com/t/how-to-count-the-number-of-image-files-in-a-folder/188951>\
**Category:** flash\
**Created:** [May 12, 2006, 1:50am UTC](https://forum.kirupa.com/t/how-to-count-the-number-of-image-files-in-a-folder/188951 "2006-05-12T01:50:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![francislow82](https://avatars.discourse-cdn.com/v4/letter/f/57b2e6/32.png) [@francislow82](https://forum.kirupa.com/u/francislow82)\
**Post date:** [May 12, 2006, 1:50am UTC](https://forum.kirupa.com/t/how-to-count-the-number-of-image-files-in-a-folder/188951/1 "2006-05-12T01:50:03Z")

</div>

Hi all, does anyone knows how to count the number of image files in a folder?

The swf is gonna be launched locally, not on a server… so i guess php is not gonna work… The photos are gonna be named according to the person in the photo, so i can’t count using the naming method ( 1.jpg, 2.jpg ) also…

Help Pls!!!

---

<div class="post-metadata">

**Author:** ![theflash](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/theflash/32/1221_2.png) [@theflash](https://forum.kirupa.com/u/theflash)\
**Post date:** [May 12, 2006, 6:41am UTC](https://forum.kirupa.com/t/how-to-count-the-number-of-image-files-in-a-folder/188951/2 "2006-05-12T06:41:56Z")

</div>

If you dont need dynamic approch use xml ( not a good solution )

Or use a socket-server or use a container made in C++

if you have budget go for ZINC
