The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 3 of 3

Thread: Any idea how this is done? Upload all contents from file on server into flash

  1. #1

    Any idea how this is done? Upload all contents from file on server into flash

    Hey,

    I have been following this example where a user can upload an image to a server through flash and php: http://www.flash-db.com/Tutorials/upload/ .

    I want to take it to the next step. At the moment all image files are being uploaded to a folder called 'files' on my server. I want to now be able to go through the contents of the 'files' folder and place all images onto the flash stage in the form of thumbnails.

    I really don't have much of an idea how this would be done. XML, php... would I need to use myQSL? Any help would be greatly appreciated.

    Cheers!

  2. #2
    1,839
    posts
    Registered User
    php can spider through directories and find all the file names and output them as XML data which flash can read.

    google "php directory spider" should give ya some pointers on how to read file names with php(http://forums.macrumors.com/showthread.php?t=233496 <- for example)

    then google flash XML tutorial....theres lots

  3. #3
    Sweet, thanks for the quick reply.

    Just checked out that website you gave me. Is this code the php file produces:
    Code:
     <a href="example/directory/file.mpg">file.mpg</a>
    <a href="example/directory/file2.mpg">file2.mpg</a>
    valid .xml code that flash will read?

    I just created a .php program that creates .txt files, so I'm assuming I can just create the .xml file just as easy.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012