views:

2653

answers:

2

I am using Flex 3 under Flash Player 9.

I have a datagrid that I want to export to Excel. I construct the Excel object (ByteArray) in Actionscript, and now I want to save it using FileReference. However, under FlashPlayer 9, FileReference only has a download method. Can I somehow point this download method to the Excel object?

+2  A: 

I think you need to upload your data to your server, and then download it to your client. Look at this example for saving images created in as3 to a client.

OR (this is hackish, but might get done what you need) you can print your data to the debug console.

jedierikb
Thanks. That worked great!
Mike Sickler
A: 

Is there any difference using flash10?

Jimminy
yes, you have the FileReference.save method ;)
Cay