Export data into a csv file from a datagrid

hey all,

I have my data in my dataGrid reading from my xml file and iā€™m just wondering how i can export this from a button into a .csv file??

I am using actionscript 2.0 and flash cs3

Any ideas on this??

Cheers Muchly
:smiley: