File Browser
Flash File browser with PHP. All source files included.
Some features:
- Download files
- Upload multiple files
- Delete files
- Highlight multiple files with shift or ctrl
- View images
- View SWF 's
- Dragable interface
- Play MP3 's
- Use delete key to delete files from MP3 list
- Big icon set for different filetypes
- Create new folder
- Delete folder
How to modify the file:
- Add component to stage
- Add this peace of code to the root:
import mx.events.EventDispatcher;
EventDispatcher.initialize(this); - Modify the parameters in panel.
For instructions on how to modify parameters dynamically:
startf:String (root folder name. Example:"my_folder/";)
rows:Number (number of rows in the combobox)
phpf:String (PHP folder name. Example: "php_folder/";)
picEnabled:Boolean (if the picviewer should show or not)
dragEnabled:Boolean (if the file browser should be dragable)
Redy to use!
The browser dispatch events like:
onDoubleClick (when double click on file)
onClick (when select/highlight file)
onCtrlClick (when selecting multiple files with ctrl button)
onCtrlDoubleClick (when double clicking multiple files)
onExit (when pressing the top right exit button)
