Folder index in Flash + PHP with icons

Hey people,
I have a problem:
I want to create an online work environment for my project group in Flash.

One part of this application should allow people to upload files and check out files other people uploaded to the server.
My problem is how can I let Flash display an index of a folder on the server (you should also be able to open folders, execute/download files and maybe create folders).

I also want the application to detect the files extensions and then give it an image as icon (like Windows does).

Can anyone help me? The tools I can use for this project are:

  • Flash MX
  • PHP
  • MySQL

Thanks in advanceā€¦