I’m going to start with saying i’m a flash noob. I did some basic flash animation in high school but i’ve never tried to use it in a web environment.
I found this tutorial:
Save a file locally with Flash Player 10
However, I don’t know enough about flash to understand how to practically embed this code in an html document.
I’d appreciate any help or suggestions you may be able to offer.
You need either flash builder or flash cs5 then use that code to create a swf file. The code isn’t embedded in the html as such. The created swf file can then be embedded in your html page.
Alternatively, you can do this on the server side - send the xml data to the server either via a form or ajax, then have a script format it into the file and send back the correct headers to prompt a download.
This is how my system works.
XSLT is used to generate an html document. At this point I would need to generate the flash / embed the xml for download into the flash/html. So if the only way I can add the XML for download is thorugh an editor than this is going to work for me.
I also can’t use ajax b/c a requirement of the html document is it work with or without internet access if used locally on someones desktop.
Is what I’m asking outside of the realm of possibility with flash?