This content has been marked as final. Show 4 replies
i would use navigateToUrl to open the link to the service in a new window and rely on the browser "Save As" to handle it. flex won't let you access the local filesystem.
Thanks, but the problem is I don't have a URL. I only have a SOAP-Webservice-call and I receive a XML with Tags <data></data> with a pdf. I don't want to save it automatically on the desktop.
Any other ideas?
1) Flex cannot natively display a PDF
2) Flex, running in a browser, cannot access the local file system or any client assets, including a PDF reader
Flex in AIR has more options.
You could have the server generate a pdf file and pass the url to the Flex client.
Then you could do as Paul suggests and launch a new browser, which would be the easiest technically.
Or, you could use the IFrame techniwue to simulate the PDF in the Flex app.