Ok, here is the problem. I added the scripts and when ever i click the button, i get the save dialgo box but doesnt save.
here is the code,
on the Initialize i have this
Code:
//Initialize
var tmp_image = Shell.getSpecialFolder("temp") + "\\~" + (new Date()).getTime().toString() + ".jpg";
getMainWnd().onClose = function ()
{
if (File.exists(tmp_image))
(new File(tmp_image)).remove();
}
return true;
On the saveimage script i have this
Code:
//saveimage
//Get image name
var image_name = FlashPlayer.getVariable("_root.image_name");
trace(image_name);
//Open the filesave dialog
var saveFilter = "JPEG files(*.jpg)|*.jpg|";
var image_to_save = Dialogs.fileSave(saveFilter, ".jpg");
if (image_to_save && image_name != '')
{
trace(image_to_save);
var img = Image.load(image_name);
img.save(image_to_save);
Shell.open(image_to_save);
}
And on the SWF Movie i have the button and the action that you told me to put that is this,
on(release){
fscommand("ffish_run", "saveimage");
}
My problem is that it doesnt save anything..
I am getting really close to a turning the project in, and i just need this to finish HELP...