I have been looking at the code to save a text file from a flash object. I managed to find a script that nearly does it all for me but I would like to have the user asked where to save the file and what to call it by bringing up the Browse dialogue. The code I have already is below does anyone know of a way to ask the user??
I can see that the line
Will need to have a variable instead of "C:\\Your_data.txt" and that there will need to be some sort script prior to this in order to let the user set the filename and select a folder to save to but dont know what to put in.
Cheers for any help. Cheech
[Peace][Pipe]
Code:
function WriteToFile(sText)
{
var fso = new ActiveXObject("Scripting.FileSystemObject");
var FileObject = fso.OpenTextFile("C:\\Your_data.txt", 8, true,0);
FileObject.write(sText);
FileObject.close();
delete FileObject;
delete fso;
}
Code:
var FileObject = fso.OpenTextFile("C:\\Your_data.txt", 8, true,0);
Cheers for any help. Cheech
[Peace][Pipe]