|
-
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.
-
You need php for that, to write you an xml file.
-
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?
-
I dont know, google: php write xml from a folder
http://blog.flexcommunity.net/?p=169
-
Senior Member
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.
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|