import flash.net.FileReference;

public function LocalFileAccessExample():void {
var fileRef = new FileReference();
fileRef.addEventListener( Event.SELECT, onFileSelect );
fileRef.addEventListener( Event.OPEN, onFileOpen );
fileRef.browse();
}

private function onFileSelect( event:Event ):void {
var fileRef:FileReference = event.target as FileReference;
fileRef.open();
}

//--------------------- option with filter
var imagesFilter:FileFilter = new FileFilter("Images",
"*.jpg;*.gif;*.png");

var docFilter:FileFilter = new FileFilter("Documents",
"*.pdf;*.doc;*.txt");

var myFileReference:FileReference = new FileReference();

myFileReference.browse([imagesFilter, docFilter]);


private function onFileOpen( event:Event ):void {
var fileRef:FileReference = event.target as FileReference;
var data:ByteArray = fileRef.data as ByteArray;
}