开发者

openFileDialog for Adobe Air app

开发者 https://www.devze.com 2023-02-18 04:19 出处:网络
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.

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

精彩评论

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