A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: reading directories?

Hybrid View

  1. #1
    Zombie Coder EvilKris's Avatar
    Join Date
    Jun 2006
    Location
    Fukuoka, Japan.
    Posts
    796

    reading directories?

    Is there anyway in Flash (perhaps using a bit of php?) to;

    a)Read through a given directory for images until the last image is reached.
    b)Convert those images into thumbnail buttons, or mc's that you can 'drag and drop'?

  2. #2
    Student
    Join Date
    Apr 2001
    Location
    -
    Posts
    4,756
    windows batch file method (no php, asp, or whatever server tools needed):
    http://board.flashkit.com/board/show...91&postcount=7

    otherwise propably php,- would be nice if someone posted a nice smal php script that returns flash a xml that includes the files and folders of the requested folder, like:
    fileList.php?dir=images/thumbnails

    right now most of my works are manual edited and created xml files because that works fastest for me from development time. Like when creating an editor I create a xml file that contains the most recent files I worked with.

  3. #3
    Zombie Coder EvilKris's Avatar
    Join Date
    Jun 2006
    Location
    Fukuoka, Japan.
    Posts
    796
    Well there is

    http://www.flash-creations.com/notes...eadfromdir.php

    Not suitable for my purposes, but maybe ok for you.
    I'll check out the Windows batch file method, thanks.

  4. #4
    Student
    Join Date
    Apr 2001
    Location
    -
    Posts
    4,756
    well why not,- because it requires php or beeing online? - if that´s the case there is portable web:
    http://portablewebap.com/
    just start the exe and within it´s subfolders you have a active php environment with apache database. can be used on autorun cd- roms as well. But I agree rather tricky if you´d use it for such.

    I´ll have a look into the link you gave me,- thx for that. But if I want such a script some day I propably write it myself with the help of my php books- but that link might be a good step starting.

  5. #5
    Zombie Coder EvilKris's Avatar
    Join Date
    Jun 2006
    Location
    Fukuoka, Japan.
    Posts
    796
    It's okay I've implemented the code you gave me. Working the way I want it now.

  6. #6
    Junior Member
    Join Date
    Mar 2017
    Posts
    1
    I may be a little less familiar, but in my opinion, this could add to my knowledge of php, thanks

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