# Can Flash dynamically read swf files from a directory? \[renamed\]

**URL:** <https://forum.kirupa.com/t/can-flash-dynamically-read-swf-files-from-a-directory-renamed/118991>\
**Category:** Uncategorized\
**Created:** [August 10, 2004, 6:09pm UTC](https://forum.kirupa.com/t/can-flash-dynamically-read-swf-files-from-a-directory-renamed/118991 "2004-08-10T18:09:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaron353](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@aaron353](https://forum.kirupa.com/u/aaron353)\
**Post date:** [August 10, 2004, 6:09pm UTC](https://forum.kirupa.com/t/can-flash-dynamically-read-swf-files-from-a-directory-renamed/118991/1 "2004-08-10T18:09:40Z")

</div>

is there a way to have flash read swf from a directory dynamicaly. so if you add a new one it reads it and you could have a next and previouse button to dynamicly browse throught them.

this way you could just upload new swf and it would automaticaly add it to the set so when you hit next at the end it would read the new one.

---

<div class="post-metadata">

**Author:** ![Floppy](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@Floppy](https://forum.kirupa.com/u/Floppy)\
**Post date:** [August 10, 2004, 7:05pm UTC](https://forum.kirupa.com/t/can-flash-dynamically-read-swf-files-from-a-directory-renamed/118991/2 "2004-08-10T19:05:34Z")

</div>

well one way, which is not totally dynamic would be to create a textfile as well in that directory with a “movies” variable which you update each time you add/remove movies… you just have to read that variable in flash and keep the “next” button active until you reach the last movie…  
this is the easiest way i believe…

---

<div class="post-metadata">

**Author:** ![2nd\_day](https://avatars.discourse-cdn.com/v4/letter/2/a4c791/32.png) [@2nd\_day](https://forum.kirupa.com/u/2nd_day)\
**Post date:** [August 10, 2004, 8:16pm UTC](https://forum.kirupa.com/t/can-flash-dynamically-read-swf-files-from-a-directory-renamed/118991/3 "2004-08-10T20:16:11Z")

</div>

i guess you can use php aswell… you make a php script witch searches for .swf files and then sends data to flash… but with a .txt file is probably much easier
