Hello,
My first post on this forum. I have a similar situation in my Air program where I need to have the user save the file in a specific location with a specific name natively. The default extension is .pdf but if they change the file's name and don't add the .pdf extension, silly Adobe won't recognize this as a pdf file and all hell breaks loose. This happens only in Windows environment. I wish someone can help me out there, my function to call the save:
Code:
public function mergeComplete(outputFile:File) : void {
PopUpManager.removePopUp(processingPopup);
var byteArray:ByteArray = new ByteArray();
var fileStream:FileStream = new FileStream();
fileStream.open(outputFile, FileMode.READ);
fileStream.readBytes(byteArray);
fileStream.close();
outputLocation.addEventListener(Event.SELECT, selectHandler);
outputLocation.save(byteArray, "myFile.pdf");
}
Thanks, I await some responses.