Check if file exists

i’m trying to find a way to get flash to find if a file exists inside a folder, if so play it, if not cycle to the next possible file name and try again. so far i’ve used a try/catch statement and loadVars and an onLoad function statement but the first doesn’t work and the load vars comes up with an infinate loop and flash terminates it. if anyone has any ideas i’d be VERY greatfull
thanks
ads