Populating a list component with online dir contents

Hi, I have a php script that displays the contents of a dir:

 
<?php
echo "<select name=\"file\">
";
foreach (new DirectoryIterator('.') as $file) {
   // if the file is not this file, and does not start with a '.' or '..',
   // then store it for later display
   if ( (!$file->isDot()) && ($file->getFilename() != basename($_SERVER['PHP_SELF'])) ) {
      echo "<option>";
      // if the element is a directory add to the file name "(Dir)"
      echo ($file->isDir()) ? "(Dir) ".$file->getFilename() : $file->getFilename();
      echo "</option>
";
   }
}
echo "</select>
";
?>

this works fine when i navigate to the php file online. My problem is that i’m not sure how to use the script to populate a list component in flash.

Any help would be appreciated.

TIA