Find number of external files?

I have a swf loading mp3s from an external folder. The number of mp3s will vary from time to time. Is there a way to determine how many mp3 files there are in the external folder… without the use of a data file such as .xml?

Many thanks in advance!