Question

So I've got a flex project that runs on the desktop. I've also got server side C# code that I run to export some data into a PDF when ever I click a button on the flex application. Currently I just auto save the files to the temp folder inside of the C:\ directory, but I was wondering how I would go about opening up a Save File dialog box in Flex so I can select a location and name for my file and then pass the full file path string over to the server to do the exporting. My research brought me to a "Filereference" class in Flex, however it looks like that actually saves some sort of file, where all I want to do is get the chosen file path from it.

EDIT: I'm working with a project that has both an Adobe AIR Application side and a Web Application side, both being run by common code, so it'd be best to have a method that is supported by both.

Était-ce utile?

La solution

Since you said you're building a Desktop application, I assume you are using Adobe AIR. You can use the File.browseForDirectory() method.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top