Thank you,
changing the , for a period was the problem.
One more question though, This code works to delete the file but the files are a sequence of images,
image1.jpg, image2.jpg, image3.jpg...and so on.
this is how my flash program reads the images and when an image is missing in the sequence the program stops.
is it possible to rename the existing files in a directory to fill in for the missing file when a client deletes one?
so that if someone deleted image2.jpg, image3 would automatically change to image2 and so on.
or is this ridiculous?
there isn't a set number of images in the gallery it's all dependent on the number of images uploaded b the client.