# Loading unknown # of photos into an array

**URL:** <https://forum.kirupa.com/t/loading-unknown-of-photos-into-an-array/125273>\
**Category:** Uncategorized\
**Created:** [October 12, 2004, 5:40am UTC](https://forum.kirupa.com/t/loading-unknown-of-photos-into-an-array/125273 "2004-10-12T05:40:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![larsappinf](https://avatars.discourse-cdn.com/v4/letter/l/eada6e/32.png) [@larsappinf](https://forum.kirupa.com/u/larsappinf)\
**Post date:** [October 12, 2004, 5:40am UTC](https://forum.kirupa.com/t/loading-unknown-of-photos-into-an-array/125273/1 "2004-10-12T05:40:06Z")

</div>

I have a number of photos that I want to load into an array, ie photo0.jpg, photo1.jpg, photo2.jpg, etc.

I can I load all photos into an array if I don’t know how many photos there are?

in other words, how can I code the movie so flash will add all photos in a folder into the array, not knowing how many there are, without changing flash code?

Hope this is clear…

thanks
