I have a Desktop Adobe Air app. I want to add openFileDialog to my app to ask user for th开发者_开发技巧e path of his project. Unfortunatelly, I can't use FileReference - it returns only file name, not path.
private function selectHandler(event:Event):void {
var file:FileReference = FileReference(event.target);
trace("selectHandler: name=" + file.name); //only name!
}
Is there any way to apply openFileDialog in such app and get the path of file, which was selected by user?
flash.filesystem.File.browseForDirectory()
精彩评论