// http://blog.everythingflex.com/2008/10/17/filereferencebrowse-bit-me-on-the-ass-today/ // http://www.gotoandlearn.com/play?id=76 public void Open(Action <MemoryStream> handler) { var f = new FileReference(); f.select += e => { f.load(); }; f.complete += e => { var m = f.data.ToMemoryStream(); handler(m); }; f.browse( //new[] // { // new FileFilter("my file", "*.out") // } ); }