2 Replies Latest reply on Apr 4, 2007 6:37 AM by Rory_Carlton

    How to load all the images from a directory

    Rory_Carlton Level 1
      I have a directory with several JPGs inside. Is there a way to get my Flash movie to load them into an array without knowing in advance how many inages there are?

      I have done this in the past using an XML file that contains the image file names – read the file, then use the list of names to load the images. But ideally, I'd like a non-skilled user to be able to just throw another image in the directory and not have to edit the XML. When the Flash runs, it should load the new image along with all the rest.

      I guess I need something like a function to let Flash read the directory listing. Does such a thing exist?

      Does anyone have any suggestions?