views:

38

answers:

3

I want to get a list images inside a folder but in order to do that, I need to get the names all the files inside a folder first. What flash class should I look into to allow me to do this?

EDIT: how about doing this using php? what should I return/echo on my php file?

A: 

It's not possible to list the contents of remote directories over HTTP unless the server is specifically set up to reveal them. This is quite unusual. The normal way to approach this would be to supply a list of URLs to your Flash movie in a config file (XML or plain text) which lives in a known location. This might be generated by a server backend, or assembled by hand.

spender
i can use php to do this though right?
denniss
No, you can't. It would be a major security leak if it were possible to do so.
OTZ
@otz: How do you explain scandir()?
Tegeril
Certainly you can use PHP (or any server-side technology) to create a list of the files and expose it to Flash (or any client-side technology). You just can't do it only on the client side.
fenomas
+1  A: 

wouldn't it be possible to use the PHP function scandir() http://us.php.net/manual/en/function.scandir.php

and return the result to Flash?

the question doesn't actually mentions remote directories...

PatrickS
+1  A: 
Tegeril