File Browser is a native extension that allows applications to browse the SDcard folder on Android devices. It lets the user pick one or more files using a dialog window listing all files inside the SDcard folder. After the user touches the screen to pick a files, some events are fired so the application can check what is happening.

The extension can be customized to allow single or multi-selection of files. If the user touches a file that is not selected, a “selected” event is fired. If the file was already selected, a “canceled” event is fired. It’s possible to exclude hidden files (or not) in the listing dialog. The application receives the path of the file when it is selected.

The listing dialog also has preview icons (for popular files) and allows search of files and folders.


import com.doitflash.air.extensions.fileBrowse.FileBrowser;
import com.doitflash.air.extensions.fileBrowse.BrowseEvent;

var _ex:FileBrowser = new FileBrowser();
_ex.addEventListener(BrowseEvent.FILE_SELECT, onFileSelected);
_ex.addEventListener(BrowseEvent.SELECT_CANCELED, onBrowseCanceled);
_ex.showHiddenFiles = false;
_ex.labels = ["SELECT", "CANCEL"];
_ex.mode = FileBrowser.MULTIPLE;

// path to the root of your sdcard""));

function onBrowseCanceled(e:BrowseEvent):void {
    trace("Browsing canceled")

function onFileSelected(e:BrowseEvent):void {
    for (var i:int = 0; i < e.param.length; i++) {
Air Native Extension, Android . URL.