Picture of the day in flash

is it possible to load a jpg picture from a directory and have it change the picture everyday to the next picture in the directory?

i can do this in php but don’t know if its possible to use some kind of action script.

thanks for any help.