Skip navigation
Currently Being Moderated

Is there a way to list all the file names (automatically) in a folder to dynamic text box?

Apr 28, 2012 11:38 PM

Hi,

 

I would like to know whether FLASH AS3 has some option to get all the files names from a folder specified and show it in a dynamic text box? Whenever some new files added to this folder it should update the list accordingly.

 

Thanks for any information in this regard.

 
Replies
  • Currently Being Moderated
    Apr 29, 2012 3:01 AM   in reply to mdnavaz

    Not particularly experienced in this field myself, but I've found its just easier to implement an XML file which lists the contents of the folder. It just means that when you upload a new file you have to add it to the list in the xml file also. No real hardship once you figure out the mechanics of it

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 29, 2012 3:47 AM   in reply to mdnavaz

    Hi,

     

    if you are talking about a folder on a webserver, you can have a server script (e.g. php) read out the folder

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 29, 2012 4:11 AM   in reply to mdnavaz

    Yes, if you're going to be on a web page and listing server files, then you'd need some server-side code, like php or .net, to send the list to your app. If you are making something standalone to work on the users machine, then you'd need to use AIR and its File class.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points