开发者

openFileDialog for Adobe Air app

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()

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜