A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Reading folder content

  1. #1
    Senior Member
    Join Date
    Jan 2001
    Location
    IT
    Posts
    213

    Reading folder content

    Hi there,

    I'll go straight to the point, I need to read the content of a directory where some images are stored and load them into flash. I've made a quick search through the forum and used the script from this one:

    http://board.flashkit.com/board/show...tent+directory

    which works perfectly. Now what I'm asking you is to 'teach me' how to set that $dir so that I can pass the 'path' directly from flash.

    Anyone?

    Thanks for your time and help

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    in Flash
    PHP Code:
    var lv = new LoadVars();
    lv.dir "someDirPath";
    lv.sendAndLoad("a.php"lv"POST"); 
    in php
    PHP Code:
    <?php 
    $dir 
    $_POST['dir'];
    hth

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