PDA

View Full Version : set file extention on save()


corbo950
04-08-2009, 09:05 PM
im trying to save CSV data our of air for Excel to read and was just wondering how i set the file extention when using file.save()?

evride
04-09-2009, 03:40 AM
var file:File = File.desktopDirectory.resolvePath('filename.ext');
file.browseForSave('Save File');

corbo950
04-09-2009, 04:13 AM
sorry i was being stupid the default file name is the second property on the Save() function thanks though

evride
04-09-2009, 03:40 PM
o, thought you were still using FP9 AS3.