Folder listing in Flex
what I need to do is get a list of files i开发者_开发问答n a folder in a Flex application from the web (i.e. all the files in a location like http://example.com/folder1). Can anyone please help me. Thank you.
Chris
To get that the list of files in a server directory, you'd need to use a server-side script (.NET, php, Ruby, etc), then pass the list to your Flex app.
Would be something of a huge security issue if you could get that information within a client side Flex app natively... unless you're using AIR on the desktop, in which case you have access to the file system.
have a look at this example http://ntt.cc/2008/02/10/how-to-load-an-image-into-our-flex-application-from-url-with-source.html
精彩评论