Hey guys, first time poster and flash newbie(ish)!
I have a question to ask, is it possible to automatically update an XML file for say, a flash gallery, when a file is dropped into the appropriate folder. A way for the XML file to just read the folder contents and use that as its arguments, so u can easily update a gallery slideshow by dropping the images into the folder, instead of changing the code?
With php you can read folder contents and use the PHP DOM XML class to write a xml file that can be read by flash (or you can have php echo out a XML file directly, thus avoiding the writing of the xml and a lot of headache with permissions).
Yes, that would be quite easy. What you would need to do it get a list of files in the directory and then use an XML library such as SimpleXML to quickly generate the XML based off of the list of files and save the resulting XML into a file. You could also build a string as the XML file, but that would result in uglier and less concise code. I would suggest first checking out PHP’s Directory functions and SimpleXML library.