flash/xml question
- Started
- Last post
- 8 Responses
- nadnerb
what's the easiest way I can read the contents of a folder and make an XML document that lists them which can then be loaded into flash?
- monNom0
How easy are you looking for?
- nadnerb0
I just want the simplest way, this is not complex xml I'd need. Basically a list of file paths. I mean I'm good as far as actionscript but I know barely any php or whatnot. . . like I can read it and understand it but not write it, sort of thing.
- nadnerb0
the xml would look like this more or less
etc
- nadnerb0
the xml would look like this more or less
nadnerb
(Nov 13 07, 16:57)right. . . well that's useful. . .
- monNom0
Should be some straight forward php. It's just a loop for each file in the directory.
You could try hacking it out. or pay somebody to write up a script for you (craigslist?).I couldn't see it taking more than an hour.
- acescence0
or this one writes it to a file. just change the text it's printing to print whatever tags you want.
- nadnerb0
pastebin.org/8062
acescence
(Nov 13 07, 17:29)nice, that will probably work after some poking around. . . so I assume in $handle = opendir('./');
the "./" is the path? So i could say
$handle = opendir('media/audio/');
for instance?