A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Load External Image Files From A Folder Automatically

  1. #1
    Junior Member
    Join Date
    Feb 2006
    Location
    Petersburg, WV
    Posts
    29

    Load External Image Files From A Folder Automatically

    Ok this is what I would like to do. My project I am working on has an app that will upload image files to a specific folder on my server what I would like to do is have it load all the files in that folder through flash without me having to manually add the names of the files into the coding if possible.

    I can create an image slideshow but I have to put in each and every .jpg and such I would prefer not to do that as in the future there may be more then 5-10 images.

    In addition I already have the app created that uploads files.

    If you need any more information let me know.

  2. #2
    Senior Member
    Join Date
    Jan 2009
    Posts
    208
    You need php for that, to write you an xml file.

  3. #3
    Junior Member
    Join Date
    Feb 2006
    Location
    Petersburg, WV
    Posts
    29
    I figured that much out however could you provide a tutorial or set em in the right direction onto something or somewhere I would do such a task?

  4. #4
    Senior Member
    Join Date
    Jan 2009
    Posts
    208
    I dont know, google: php write xml from a folder

    http://blog.flexcommunity.net/?p=169

  5. #5
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    I have a PHP script for this in PHP there is a method that will search a directory and return the file names as strings its fairly simple.........you can import those strings into flash using the loader object and after they are finished loading into flash you can place them in a array and then use a forloop to manipulate that array put the loader function in a Timer event and continously poll the php every few seconds or minutes to see if the directory has any changes.
    ~calmchess~

  6. #6
    Junior Member
    Join Date
    Feb 2006
    Location
    Petersburg, WV
    Posts
    29
    Ok what I have done is modified my upload script to write in a txt file (which I am sure I can change to an xml file if need be) everytime I upload something to my server it adds like this:

    blah.jpg
    blahblah.jpg
    blahblahblah.jpg

    Now how would I go about loading each individually and continously for example something like the PS3's XMB if you are familiar if not here is an example of the music layout



    Id like to do something similar I'm just not sure how to get each to load or if it is possible. If you need any info from me or my fla let me know an I will assist you. or you can check out my demo at http://angelusruina.com/sample/
    Last edited by flickcorp; 08-05-2011 at 02:36 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center