Scanning a Dir

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?