# Scanning a Dir

**URL:** https://forum.kirupa.com/t/scanning-a-dir/41061
**Category:** Uncategorized
**Created:** [January 25, 2004, 10:49am UTC](https://forum.kirupa.com/t/scanning-a-dir/41061 "2004-01-25T10:49:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![T\_O](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@T\_O](https://forum.kirupa.com/u/T_O)
#### Post date: [January 25, 2004, 10:49am UTC](https://forum.kirupa.com/t/scanning-a-dir/41061/1 "2004-01-25T10:49:11Z")

</div>

This is what i want to do:

I want the flash movie to scan the dir, like: news/  
In news i have a few txt. files:

news/1.txt  
news/2.txt  
news/3.txt

I want it to return a array [1.txt,2.txt,3.txt]

But when i ad one.

news/4.txt

it automaticly returns an array with [1.txt,2.txt,3.txt,4.txt] in it.  
how would i do this?
